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

Missing initial <p> tags in CKeditor cause text to be added an extra space after html tag

    Details

      Description

      CKeditor is missing initial <p> tags when inputting text to the editor. This causes the text to have an extra space "\n" added as it goes thru antisamy when published (also stored in the database in that way).
      Pressing enter in editor (for input spanning multiple lines) <p> tags are added and thus does not reproduce issue.

      Reproduction Steps:
      1. Add Calendar portlet to page
      2. Click 'Add Event', enter title, enter "abc" for description
      3. Highlight "b" and bold it
      *Notice that if you click 'Source' in CKeditor toolbar, the input is not enclosed in <p> tags
      4. Publish

      Expected Result:
      Text should be displayed as "abc"

      Actual Result:
      Text is displayed as "ab c", with the added space after the html bold tag

      Reproduced in:
      master f8313a5b8a9cc1382e88b207ee45eb4cd0c4d582
      7.1.x dcb28b2cdc1c8da2eee11e91c9bc3a61e58555ee
      7.0.x 47cf167c77aabb3dc15a1e1b5ec4a6357f0274cf

        Attachments

          Activity

            People

            • Assignee:
              john.co John Co
              Reporter:
              nelly.liu-peng Nelly Liu-Peng
              Participants of an Issue:
              Recent user:
              Clarissa Velazquez
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                31 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP78
                7.0.10.11 DXP SP11
                7.0.X
                7.1.10 DXP FP10
                7.1.10.2 SP2
                7.1.3 CE GA4
                7.1.X
                Master