Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-52359

6.2.x: When copy and paste in creole editor, the first line is missing.

    Details

      Description

      Description:
      Some text fails to copy over in the WYSIWYG editor of Web Content when heading formatting. In a use case involving three lines, where the second line's text is formatted with Heading 1, if we try copying it, and paste it on the next line after the third line, we will only get the second and third line pasted in the WYSIWYG editor.

      Steps to reproduce:
      1. Start up 6.2 EE instance
      2. Add Wiki portlet to a page
      3. In the WYSIWYG editor add text:
      Line 1
      Line 2
      Line 3
      4. Highlight Line 2, and select formatting as Heading 1
      5. Copy all of the contents of this Wiki (Line 1 to Line 3)
      6. Create a line break after Line 3 and paste (CTRL+V)

      Expected Result:
      editor contains
      Line 1
      Line 2 (formatted as heading)
      Line 3
      Line 1
      Line 2 (formatted as heading)
      Line 3

      Actual Results:
      Line 1 is missing. The observed behavior is as follows:

      Line 1
      Line 2 (formatted as heading)
      Line 3
      Line 2 (formatted as heading)
      Line 3

        Attachments

        1. fixed.png
          fixed.png
          22 kB
        2. reproduced.png
          reproduced.png
          20 kB

          Issue Links

            Activity

              People

              Assignee:
              joyce.wang Joyce Wang
              Reporter:
              john.zhao John Zhao (Inactive)
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 45 weeks ago

                  Packages

                  Version Package
                  6.1.X EE
                  6.2.3 CE GA4
                  6.2.X EE