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

Line disappears after soft carriage return

    XMLWordPrintable

    Details

      Description

      Copying and pasting a line from OpenOffice (or LibreOffice) to the editor where there is a soft carriage return(Shift+Enter) may cause the line after said carriage return to disappear.

      For example, given this input, the second line will disappear on Firefox:
      [code]
      Foo

      {soft-return}
      Bar
      [/code]

      Similarly, the second line will disappear for the following, on Google Chrome & Chromium:
      [code]
      Foo{soft-return}

      Bar

      {soft-return}

      [/code]
      There seem to be other combinations of content+soft returns that will cause some content to disappear. Disabling the editor and looking at the plain textarea shows that the content is really removed, and not just chewed up between other markup.

      The issue was reproduced both in eZFlow and the admin interface. The issue does not appear to be present if text is copied from MS Word.

      Steps to reproduce

      1. Edit an article
      2. Type the following into OpenOffice or LibreOffice, but note that the separations between lines should be soft carriage returns, using Shift+Enter; also note that to reproduce this issue in Chrome there should be a soft return after the second line.
      [code]
      Magic vanishing line:
      Line
      [/code]
      3. Copy everything (including the empty line at the end) and paste it in the editor
      4. The second line ("Line") is no longer present

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              unknown unknown
              Reporter:
              vl Vidar Langseid
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: