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

Embed images displayed side-by-side in Online Editor

    Details

      Description

      Embed images are displayed in eZOE side-by-side, what shouldn't happen according to Object embedding documentation page. See attached bug-001.png image.

      With this tag, embedded objects are inserted as "block elements". Such an element always begins on a new line when it is displayed. It exists in its own virtual box and is always followed by a carriage return (like if someone hit the "Enter" key after inserting the object). This means that, for example, inserting an image using the "embed" tag will break the current paragraph. The "embed" tag is represented by block-level tags in the resulting XHTML code.

      In fact, if you insert an embed file object, it will be a block element not allowing anything in the same line. See attached bug-002.png image.

      The behavior of embed image and file elements should be the same.

      Steps to Reproduce

      1. In eZOE, add an embed image according to attached bug-001.png image.
      2. Add a second embed image in the same line according to attached bug-001.png image.
        See that both images are side-by-side.
      3. Add an embed file element.
        See that the file won't allow anything else in the line.
      1. capture_005.png
        54 kB
      2. capture_004.png
        42 kB
      3. capture_003.png
        42 kB
      4. capture_002.png
        42 kB
      5. capture_001.png
        61 kB
      6. bug-002.png
        36 kB
      7. bug-001.png
        47 kB

        Issue Links

          Activity

          Show
          Damien Pobel (Inactive) added a comment - PR: https://github.com/ezsystems/ezpublish-legacy/pull/959
          Show
          Damien Pobel (Inactive) added a comment - Fixed in ezpublish-legacy: master: https://github.com/ezsystems/ezpublish-legacy/commit/7b15917dc90c10abb2bd78f5f59b8ee8e1579044
          Hide
          Joao Pingo (Inactive) added a comment -

          QA Approved

          Show
          Joao Pingo (Inactive) added a comment - QA Approved
          Hide
          Eduardo Fernandes (Inactive) added a comment -

          Attached image codes

          <strong>TWO IMAGES:</strong>
          <embed view="embed" size="medium" custom:offset="0" custom:limit="5" href="ezobject://119" /><embed view="embed" size="medium" custom:offset="0" custom:limit="5" href="ezobject://119" /><strong>NOT INLINE, NOT ALIGNED</strong>

          <strong>TWO IMAGES:</strong>
          <embed view="embed" size="medium" align="left" custom:offset="0" custom:limit="5" href="ezobject://119" /><embed view="embed" size="medium" align="left" custom:offset="0" custom:limit="5" href="ezobject://119" /><strong>NOT INLINE, LEFT ALIGNED</strong>

          <strong>TWO IMAGES:</strong>
          <embed-inline view="embed-inline" size="medium" href="ezobject://123" /><embed-inline view="embed-inline" size="medium" href="ezobject://123" /><strong>INLINE, NOT ALIGNED</strong>

          <strong>TWO IMAGES:</strong>
          <embed-inline view="embed-inline" size="medium" align="left" href="ezobject://124" /><embed view="embed" size="medium" align="left" custom:offset="0" custom:limit="5" href="ezobject://124" /><strong>INLINE, LEFT ALIGNED</strong>

          <strong>FOUR IMAGES:</strong>
          <embed view="embed" size="medium" align="left" custom:offset="0" custom:limit="5" href="ezobject://119" /><embed view="embed" size="medium" align="left" custom:offset="0" custom:limit="5" href="ezobject://119" /><embed-inline view="embed-inline" size="medium" align="left" href="ezobject://124" /><embed view="embed" size="medium" align="left" custom:offset="0" custom:limit="5" href="ezobject://124" /><strong>TWO NOT INLINE, LEFT ALIGNED</strong><strong>TWO INLINE, LEFT ALIGNED</strong>

          Show
          Eduardo Fernandes (Inactive) added a comment - Attached image codes <strong>TWO IMAGES:</strong> <embed view="embed" size="medium" custom:offset="0" custom:limit="5" href="ezobject://119" /><embed view="embed" size="medium" custom:offset="0" custom:limit="5" href="ezobject://119" /><strong>NOT INLINE, NOT ALIGNED</strong> <strong>TWO IMAGES:</strong> <embed view="embed" size="medium" align="left" custom:offset="0" custom:limit="5" href="ezobject://119" /><embed view="embed" size="medium" align="left" custom:offset="0" custom:limit="5" href="ezobject://119" /><strong>NOT INLINE, LEFT ALIGNED</strong> <strong>TWO IMAGES:</strong> <embed-inline view="embed-inline" size="medium" href="ezobject://123" /><embed-inline view="embed-inline" size="medium" href="ezobject://123" /><strong>INLINE, NOT ALIGNED</strong> <strong>TWO IMAGES:</strong> <embed-inline view="embed-inline" size="medium" align="left" href="ezobject://124" /><embed view="embed" size="medium" align="left" custom:offset="0" custom:limit="5" href="ezobject://124" /><strong>INLINE, LEFT ALIGNED</strong> <strong>FOUR IMAGES:</strong> <embed view="embed" size="medium" align="left" custom:offset="0" custom:limit="5" href="ezobject://119" /><embed view="embed" size="medium" align="left" custom:offset="0" custom:limit="5" href="ezobject://119" /><embed-inline view="embed-inline" size="medium" align="left" href="ezobject://124" /><embed view="embed" size="medium" align="left" custom:offset="0" custom:limit="5" href="ezobject://124" /><strong>TWO NOT INLINE, LEFT ALIGNED</strong><strong>TWO INLINE, LEFT ALIGNED</strong>
          Hide
          Damien Pobel (Inactive) added a comment -

          Eduardo: this is a different issue being handled in https://jira.ez.no/browse/EZP-22685

          Show
          Damien Pobel (Inactive) added a comment - Eduardo: this is a different issue being handled in https://jira.ez.no/browse/EZP-22685
          Hide
          Damien Pobel (Inactive) added a comment -

          The issue is already fixed, the second one reported in the comment is being handled in EZP-22928.

          Show
          Damien Pobel (Inactive) added a comment - The issue is already fixed, the second one reported in the comment is being handled in EZP-22928 .

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 5 hours
                5h