Uploaded image for project: 'PUBLIC - Liferay Alloy UI'
  1. PUBLIC - Liferay Alloy UI
  2. AUI-3088

Alloy editor placeholder returns blank string rather than ckEditor default

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed in LPS
    • Affects Version/s: master
    • Fix Version/s: None
    • Component/s: Other
    • Labels:
      None

      Description

      Description

      When CKEditor initially calls "resetDirty()" on an empty inline editor field, the field returns "<p><br><p>". This is intended, however, once the contentDom event has been fired, and placeholder text is used, the field will return a blank string.

      This can be demonstrated with the following steps to reproduce

      Steps to reproduce

      1) Select Menu > Liferay DXP > Content > Web Content.
      2) Add a basic web content article with just a title.
      3) Select the article to enter the edit window.
      4) Hit Preview under the three dots.

      Results of Testing

      Expected Result: No unsaved changes popup appears because there are no changes.
      Actual Results: A popup alerting the user of unsaved changes appears. This is because when the checkDirty() method is called, the initial field value of <p><br><p> does not equal the blank string value the field returns after the contentDom event is fired.

      Errors/Logs

      No errors

      Master

      Reproduced.
      25151898f9385f09096f05ab7cf30aeea281330d

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 1 week, 4 days ago

                Packages

                Version Package