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

Indent is lost after switching to Source mode and back in CKEditor

    Details

      Description

      Issue
      Indent is lost after switching to Source mode and back in CKEditor

      Steps to reproduce
      Case 1

      1. Add a new thread to the Message Boards
      2. Type something
      3. Indent it to the right
      4. Switch to Source and back to rich editing

      Expected result
      Indent is respected
      No indent should be allowed on non-list content.

      Actual result
      Indent is lost
      Indents allowed on non-list content. Indents are then lost when switching to Source and back to rich editing.

      Note, in ee-6.2.x the line-breaks disappear causing content on two lines to become one line. (Will be addressed in LPS-39430)

      Case 2

      1. Add a new thread to the Message Boards
      2. Add some text in 2 different lines
      3. Select both lines and make it a numeric list
      4. Select 2nd line and indent it to the right
      5. Switch to Source and back to rich editing
      6. Note that indent was respected
      7. Indent the 2nd line again (so it has 2 indents)
      8. Switch to Source and back to rich editing

      Expected result
      Indent is respected
      Only one indent per level should be allowed/remain.

      Actual result
      Indent is lost
      Multiple indents are allowed then lost when switching to Source and back to rich editing.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 36 weeks, 1 day ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M5