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

Embed element in RichText hidden when viewing and editing content

    Details

      Description

      Steps to reproduce

      1. Go to PlatformUI;
      2. Create a content type having a RichText field;
      3. Back to "Content Structure", create a content of the content type you just created with Rich Text field;
      4. Add an embed image to the Rich Text field
      5. Publish
      6. The Rich Text field will appear empty, but if you inspect with firebug

      <section xmlns="http://ez.no/namespaces/ezpublish5/xhtml5/edit"><div data-ezview="embed" id="yui_3_18_1_1_1445338149103_7919" data-href="ezcontent://106" data-ezelement="ezembed"></div></section>
      

        Issue Links

          Activity

          Hide
          Damien Pobel added a comment -

          Actually, while working on adding images in the RichText editor, I figured out that this issue is a bit more complicated than just adding the content name in the embed element. Because in the case of an embed representing an image, I would need an <img> inside the embed div and/or something on the embed element saying "this embed represents an image in the editor" otherwise I have no way to discriminate an embed for image from a "normal" embed and I can not implement what is specified in https://doc.ez.no/display/PR/Online+Editor%3A+Scope (especially the custom toolbar to when giving the focus to an image).

          Show
          Damien Pobel added a comment - Actually, while working on adding images in the RichText editor, I figured out that this issue is a bit more complicated than just adding the content name in the embed element. Because in the case of an embed representing an image, I would need an <img> inside the embed div and/or something on the embed element saying "this embed represents an image in the editor" otherwise I have no way to discriminate an embed for image from a "normal" embed and I can not implement what is specified in https://doc.ez.no/display/PR/Online+Editor%3A+Scope (especially the custom toolbar to when giving the focus to an image).
          Hide
          Damien Pobel added a comment - - edited

          Without response, I choose to set the class ez-embed-type-image on the embed element representing an image in the editor in https://github.com/ezsystems/PlatformUIBundle/pull/436 (EZP-25108) but the problem of having empty embed remains.

          Show
          Damien Pobel added a comment - - edited Without response, I choose to set the class ez-embed-type-image on the embed element representing an image in the editor in https://github.com/ezsystems/PlatformUIBundle/pull/436 ( EZP-25108 ) but the problem of having empty embed remains.
          Show
          Damien Pobel added a comment - PR: https://github.com/ezsystems/PlatformUIBundle/pull/514
          Hide
          Damien Pobel added a comment -
          Show
          Damien Pobel added a comment - Merged in master in Merged in master in https://github.com/ezsystems/PlatformUIBundle/commit/2f6e7da74db4472cef9ce44b5e7845c393f150aa
          Hide
          Rui Silva added a comment -

          Tested and approved by QA for master.

          Show
          Rui Silva added a comment - Tested and approved by QA for master.

            People

            • Assignee:
              Unassigned
              Reporter:
              Pedro Resende (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: