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

Inconsistent behavior of Code block button in CKEditor

    Details

      Description

      Issue
      Inconsistent behavior of Code block button.

      Steps to reproduce

      1. Start a new thread in Message Boards
      2. In Body, click on Code block button [ < > ]
      3. Type these 2 lines:
        some
        text
        
      4. Click on 2nd line and click on Code button again to remove the code style for the second line
      5. Note that 1st line is still styled for code
      6. Remove all content
      7. Type again the above text (2 lines)
      8. Select both lines and click on Code button to make it code style
      9. Click on 2nd line and click on Code button again to remove the code style for the second line

      Expected behavior
      1st line keeps code style

      Actual behavior
      Code style is removed for both lines

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                beck.liu Beck Liu
                Reporter:
                hai.yu Hai Yu
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 13 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.4 CE GA5
                  6.2.X EE
                  7.0.0 M5