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

HTML pasted into literal ends up outside literal tag when the source is not plaintext

    Details

      Description

      Basically, this is the same bug described in EZP-22313 and it will only appears after the apply of the patch provided in that issue.

      Steps to Reproduce
      With the patch, execute the steps to reproduce described in EZP-22313 but have in mind:

      • Test in both Chrome and Firefox (the behavior seems a little erratic here).
      • Copy the HTML tags from a Browser (there's an example below) or from a text processor like MS Word source. Plain text bug is solved.
      • Confirm the tags will be pasted outside the literal or the literal tag will disappear.

      <div>
      <table>
      <tr>
      <td><b>Head #001</b></td>
      <td><b>Head #002</b></td>
      </tr>
      <tr>
      <td><b>Test #001</b></td>
      <td><b>Test #002</b></td>
      </tr>
      </table>
      </div>
      

        Issue Links

          Activity

          Show
          Damien Pobel (Inactive) added a comment - PR: https://github.com/ezsystems/ezpublish-legacy/pull/915
          Show
          Damien Pobel (Inactive) added a comment - - edited Fixed in ezpublish-legacy: master: https://github.com/ezsystems/ezpublish-legacy/commit/0b81ecc865f5083c14a75c72381e06905ad24dab
          Hide
          Damien Pobel (Inactive) added a comment - - edited

          While at it, I fixed/improved two related issue in master:

          Show
          Damien Pobel (Inactive) added a comment - - edited While at it, I fixed/improved two related issue in master: Improved the plain text conversion in Firefox when the source is a <pre> tag content: https://github.com/ezsystems/ezpublish-legacy/commit/0552512680d839b2a034db7e692646ba214befd5 make sure long lines inside literal tag do not overflow the literal area: https://github.com/ezsystems/ezpublish-legacy/commit/2c8bb65fcf2d88db50bef6bb77bf0a562f0309d1
          Hide
          Paulo Nunes (Inactive) added a comment -

          QA Approved

          Show
          Paulo Nunes (Inactive) added a comment - QA Approved

            People

            • Assignee:
              Unassigned
              Reporter:
              Eduardo Fernandes (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 4 hours
                4h