Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-23815

As an editor, I want to be able to fill the RichText with a rich text editor

    Details

      Issue Links

        Activity

        Hide
        Roland Benedetti added a comment -

        Hello Damien,
        Can you comment a bit what you meant on this story "to fill the RichText with a rich text editor"?
        Is it, "as an editor, I want to be able to paste rich text in the rich text editor"?
        Current description is a bit confusing to me.

        Show
        Roland Benedetti added a comment - Hello Damien, Can you comment a bit what you meant on this story "to fill the RichText with a rich text editor"? Is it, "as an editor, I want to be able to paste rich text in the rich text editor"? Current description is a bit confusing to me.
        Hide
        Damien Pobel (Inactive) added a comment -

        The purpose of this issue is to get running a basic rich text editor to be able to achieve basic RichText field editing (Enter text in paragraph, add headers, lists, and do basic formatting like bold, italic) and to have basis to improve later (links, embed, ...)

        Show
        Damien Pobel (Inactive) added a comment - The purpose of this issue is to get running a basic rich text editor to be able to achieve basic RichText field editing (Enter text in paragraph, add headers, lists, and do basic formatting like bold, italic) and to have basis to improve later (links, embed, ...)
        Show
        Damien Pobel (Inactive) added a comment - Merged in https://github.com/ezsystems/PlatformUIBundle/commit/c6eff3c0bede4eaa833fba060e025ea64ffc78ea
        Hide
        Rui Silva (Inactive) added a comment -

        [~damien.pobel@ez.no], ensuring I have this fix (on a master) if I try to access platformUI I get his error on firefox console:

        "NetworkError: 404 Not Found - http://ezp5.rui/bundles/ezplatformuiassets/vendors/alloy-editor/dist/alloy-editor/alloy-editor-all.js"
        ReferenceError: AlloyEditor is not defined
        Y.eZ.AlloyEditor = AlloyEditor;
        

        And it never advances past the "Loading the application..." screen.
        I'm using Firefox 36.0

        Show
        Rui Silva (Inactive) added a comment - [~damien.pobel@ez.no] , ensuring I have this fix (on a master) if I try to access platformUI I get his error on firefox console: "NetworkError: 404 Not Found - http://ezp5.rui/bundles/ezplatformuiassets/vendors/alloy-editor/dist/alloy-editor/alloy-editor-all.js" ReferenceError: AlloyEditor is not defined Y.eZ.AlloyEditor = AlloyEditor; And it never advances past the "Loading the application..." screen. I'm using Firefox 36.0
        Hide
        Damien Pobel (Inactive) added a comment -

        please update your ezplaform install with composer to get the last PlatformUIAssetsBundle release (0.7).

        Show
        Damien Pobel (Inactive) added a comment - please update your ezplaform install with composer to get the last PlatformUIAssetsBundle release (0.7).
        Hide
        Rui Silva (Inactive) added a comment -

        Ok, thanks.
        Shouldn't this change to composer.json though be commited so that a default master installation comes with the latest platformUI assets bundle?

        Show
        Rui Silva (Inactive) added a comment - Ok, thanks. Shouldn't this change to composer.json though be commited so that a default master installation comes with the latest platformUI assets bundle?
        Hide
        Rui Silva (Inactive) added a comment -

        I managed to make the toolbar appear correctly by having rerun the assets dump again to ensure the dump of assets for platformUI and platformUIassets, but now I can' t seem to be able to save or publish contents with RichText field definition at all.
        I get an error notification "An error occurred while saving the draft" and if trying to publish instead of saving I even get the spinning loading icon in endless loop.
        This is the error I get, in firebug:

        http://ezp5.rui/api/ezp/v2/content/objects 406 Not Acceptable                549ms	   CAPI.js (line 1406)
        "NetworkError: 406 Not Acceptable - http://ezp5.rui/api/ezp/v2/content/objects"                     objects
        

        Response Headers:

        Cache-Control	private
        Connection	Keep-Alive
        Content-Length	5262
        Content-Type	application/vnd.ez.api.ErrorMessage+json
        Date	Wed, 24 Jun 2015 07:52:20 GMT
        Keep-Alive	timeout=5, max=100
        Server	Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.4.16
        Vary	Cookie,Authorization
        X-Powered-By	PHP/5.4.16
        

        Request Headers:

        Accept	application/vnd.ez.api.Content+json
        Accept-Encoding	gzip, deflate
        Accept-Language	en-US,en;q=0.5
        Content-Length	703
        Content-Type	application/vnd.ez.api.ContentCreate+json; charset=UTF-8
        Cookie	eZSESSID=2j7knb9ispcmqp5aldvnc2q610
        Host	ezp5.rui
        Referer	http://ezp5.rui/shell
        User-Agent	Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0
        X-CSRF-Token	VLePNfYcu98xDXKbdMSAxqgWr8Biej3XwG02q7wXlyI
        

        Response:

        {"ErrorMessage":{"_media-type":"application\/vnd.ez.api.ErrorMessage+json","errorCode":406,"errorMessage":"Not Acceptable","errorDescription":"Argument '$inputValue' is invalid: Validation of XML content failed: Error in 6:0: Element section has extra content: text","trace":"#0 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/FieldType\/FieldType.php(393): eZ\\Publish\\Core\\FieldType\\RichText\\Type->createValueFromInput('<section id=\"yu...')\n#1 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/FieldType\/RichText\/Type.php(267): eZ\\Publish\\Core\\FieldType\\FieldType->acceptValue('<section id=\"yu...')\n#2 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Repository\/Values\/ContentType\/FieldType.php(191): eZ\\Publish\\Core\\FieldType\\RichText\\Type->fromHash(Array)\n#3 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Input\/FieldTypeParser.php(95): eZ\\Publish\\Core\\Repository\\Values\\ContentType\\FieldType->fromHash(Array)\n#4 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Input\/Parser\/ContentCreate.php(182): eZ\\Publish\\Core\\REST\\Common\\Input\\FieldTypeParser->parseValue('ezrichtext', Array)\n#5 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Input\/ParsingDispatcher.php(79): eZ\\Publish\\Core\\REST\\Server\\Input\\Parser\\ContentCreate->parse(Array, Object(eZ\\Publish\\Core\\REST\\Common\\Input\\ParsingDispatcher))\n#6 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Input\/Dispatcher.php(115): eZ\\Publish\\Core\\REST\\Common\\Input\\ParsingDispatcher->parse(Array, 'application\/vnd...')\n#7 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Controller\/Content.php(251): eZ\\Publish\\Core\\REST\\Common\\Input\\Dispatcher->parse(Object(eZ\\Publish\\Core\\REST\\Common\\Message))\n#8 [internal function]: eZ\\Publish\\Core\\REST\\Server\\Controller\\Content->createContent(Object(Symfony\\Component\\HttpFoundation\\Request))\n#9 \/var\/www\/html\/ezpublish5\/ezpublish\/bootstrap.php.cache(3094): call_user_func_array(Array, Array)\n#10 \/var\/www\/html\/ezpublish5\/ezpublish\/bootstrap.php.cache(3056): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#11 \/var\/www\/html\/ezpublish5\/ezpublish\/bootstrap.php.cache(3207): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#12 \/var\/www\/html\/ezpublish5\/ezpublish\/bootstrap.php.cache(2429): Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#13 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpCache\/HttpCache.php(492): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#14 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Bundle\/FrameworkBundle\/HttpCache\/HttpCache.php(60): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->forward(Object(Symfony\\Component\\HttpFoundation\\Request), true, NULL)\n#15 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpCache\/HttpCache.php(263): Symfony\\Bundle\\FrameworkBundle\\HttpCache\\HttpCache->forward(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#16 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpCache\/HttpCache.php(280): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->pass(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#17 \/var\/www\/html\/ezpublish5\/vendor\/friendsofsymfony\/http-cache-bundle\/SymfonyCache\/EventDispatchingHttpCache.php(161): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->invalidate(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#18 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Bundle\/EzPublishCoreBundle\/HttpCache.php(39): FOS\\HttpCacheBundle\\SymfonyCache\\EventDispatchingHttpCache->invalidate(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#19 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpCache\/HttpCache.php(209): eZ\\Bundle\\EzPublishCoreBundle\\HttpCache->invalidate(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#20 \/var\/www\/html\/ezpublish5\/vendor\/friendsofsymfony\/http-cache-bundle\/SymfonyCache\/EventDispatchingHttpCache.php(122): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#21 \/var\/www\/html\/ezpublish5\/web\/index.php(81): FOS\\HttpCacheBundle\\SymfonyCache\\EventDispatchingHttpCache->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#22 {main}","file":"\/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/FieldType\/RichText\/Type.php","line":168}}
        

        Show
        Rui Silva (Inactive) added a comment - I managed to make the toolbar appear correctly by having rerun the assets dump again to ensure the dump of assets for platformUI and platformUIassets, but now I can' t seem to be able to save or publish contents with RichText field definition at all. I get an error notification "An error occurred while saving the draft" and if trying to publish instead of saving I even get the spinning loading icon in endless loop. This is the error I get, in firebug: http://ezp5.rui/api/ezp/v2/content/objects 406 Not Acceptable 549ms CAPI.js (line 1406) "NetworkError: 406 Not Acceptable - http://ezp5.rui/api/ezp/v2/content/objects" objects Response Headers: Cache-Control private Connection Keep-Alive Content-Length 5262 Content-Type application/vnd.ez.api.ErrorMessage+json Date Wed, 24 Jun 2015 07:52:20 GMT Keep-Alive timeout=5, max=100 Server Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/5.4.16 Vary Cookie,Authorization X-Powered-By PHP/5.4.16 Request Headers: Accept application/vnd.ez.api.Content+json Accept-Encoding gzip, deflate Accept-Language en-US,en;q=0.5 Content-Length 703 Content-Type application/vnd.ez.api.ContentCreate+json; charset=UTF-8 Cookie eZSESSID=2j7knb9ispcmqp5aldvnc2q610 Host ezp5.rui Referer http://ezp5.rui/shell User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:36.0) Gecko/20100101 Firefox/36.0 X-CSRF-Token VLePNfYcu98xDXKbdMSAxqgWr8Biej3XwG02q7wXlyI Response: {"ErrorMessage":{"_media-type":"application\/vnd.ez.api.ErrorMessage+json","errorCode":406,"errorMessage":"Not Acceptable","errorDescription":"Argument '$inputValue' is invalid: Validation of XML content failed: Error in 6:0: Element section has extra content: text","trace":"#0 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/FieldType\/FieldType.php(393): eZ\\Publish\\Core\\FieldType\\RichText\\Type->createValueFromInput('<section id=\"yu...')\n#1 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/FieldType\/RichText\/Type.php(267): eZ\\Publish\\Core\\FieldType\\FieldType->acceptValue('<section id=\"yu...')\n#2 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/Repository\/Values\/ContentType\/FieldType.php(191): eZ\\Publish\\Core\\FieldType\\RichText\\Type->fromHash(Array)\n#3 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Input\/FieldTypeParser.php(95): eZ\\Publish\\Core\\Repository\\Values\\ContentType\\FieldType->fromHash(Array)\n#4 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Input\/Parser\/ContentCreate.php(182): eZ\\Publish\\Core\\REST\\Common\\Input\\FieldTypeParser->parseValue('ezrichtext', Array)\n#5 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Input\/ParsingDispatcher.php(79): eZ\\Publish\\Core\\REST\\Server\\Input\\Parser\\ContentCreate->parse(Array, Object(eZ\\Publish\\Core\\REST\\Common\\Input\\ParsingDispatcher))\n#6 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Common\/Input\/Dispatcher.php(115): eZ\\Publish\\Core\\REST\\Common\\Input\\ParsingDispatcher->parse(Array, 'application\/vnd...')\n#7 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/REST\/Server\/Controller\/Content.php(251): eZ\\Publish\\Core\\REST\\Common\\Input\\Dispatcher->parse(Object(eZ\\Publish\\Core\\REST\\Common\\Message))\n#8 [internal function]: eZ\\Publish\\Core\\REST\\Server\\Controller\\Content->createContent(Object(Symfony\\Component\\HttpFoundation\\Request))\n#9 \/var\/www\/html\/ezpublish5\/ezpublish\/bootstrap.php.cache(3094): call_user_func_array(Array, Array)\n#10 \/var\/www\/html\/ezpublish5\/ezpublish\/bootstrap.php.cache(3056): Symfony\\Component\\HttpKernel\\HttpKernel->handleRaw(Object(Symfony\\Component\\HttpFoundation\\Request), 1)\n#11 \/var\/www\/html\/ezpublish5\/ezpublish\/bootstrap.php.cache(3207): Symfony\\Component\\HttpKernel\\HttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#12 \/var\/www\/html\/ezpublish5\/ezpublish\/bootstrap.php.cache(2429): Symfony\\Component\\HttpKernel\\DependencyInjection\\ContainerAwareHttpKernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#13 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpCache\/HttpCache.php(492): Symfony\\Component\\HttpKernel\\Kernel->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#14 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Bundle\/FrameworkBundle\/HttpCache\/HttpCache.php(60): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->forward(Object(Symfony\\Component\\HttpFoundation\\Request), true, NULL)\n#15 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpCache\/HttpCache.php(263): Symfony\\Bundle\\FrameworkBundle\\HttpCache\\HttpCache->forward(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#16 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpCache\/HttpCache.php(280): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->pass(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#17 \/var\/www\/html\/ezpublish5\/vendor\/friendsofsymfony\/http-cache-bundle\/SymfonyCache\/EventDispatchingHttpCache.php(161): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->invalidate(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#18 \/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Bundle\/EzPublishCoreBundle\/HttpCache.php(39): FOS\\HttpCacheBundle\\SymfonyCache\\EventDispatchingHttpCache->invalidate(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#19 \/var\/www\/html\/ezpublish5\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpCache\/HttpCache.php(209): eZ\\Bundle\\EzPublishCoreBundle\\HttpCache->invalidate(Object(Symfony\\Component\\HttpFoundation\\Request), true)\n#20 \/var\/www\/html\/ezpublish5\/vendor\/friendsofsymfony\/http-cache-bundle\/SymfonyCache\/EventDispatchingHttpCache.php(122): Symfony\\Component\\HttpKernel\\HttpCache\\HttpCache->handle(Object(Symfony\\Component\\HttpFoundation\\Request), 1, true)\n#21 \/var\/www\/html\/ezpublish5\/web\/index.php(81): FOS\\HttpCacheBundle\\SymfonyCache\\EventDispatchingHttpCache->handle(Object(Symfony\\Component\\HttpFoundation\\Request))\n#22 {main}","file":"\/var\/www\/html\/ezpublish5\/vendor\/ezsystems\/ezpublish-kernel\/eZ\/Publish\/Core\/FieldType\/RichText\/Type.php","line":168}}
        Hide
        Rui Silva (Inactive) added a comment -

        Tested and approved by QA for master.
        Due to the error just reported before (due to a pending PR on the kernel, according to Damien) and the fact that the actual correct saving / storing of the content is outside of the scope of this issue, it's QA'able even if cannot save the content.
        The goal here is to see the field if fillable as rich text.

        Show
        Rui Silva (Inactive) added a comment - Tested and approved by QA for master. Due to the error just reported before (due to a pending PR on the kernel, according to Damien) and the fact that the actual correct saving / storing of the content is outside of the scope of this issue, it's QA'able even if cannot save the content. The goal here is to see the field if fillable as rich text.

          People

          • Assignee:
            Unassigned
            Reporter:
            Damien Pobel (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Agile