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

ClassicEditor triggers an onChange during the initialization period

    Details

      Description

      When ClassicEditor (react)  is initializing some unexpected onChange are triggered.

      We try to avoid these changes in comparing the new data with the actual one inspired in
      Data Engine RichText.

      Unfortunately when the initial data isn't HTML just plain text this fix doesn't work, because the editor wraps the data with HTML and triggers the change.

       

      More context: https://github.com/liferay-lima/liferay-portal/pull/1641#issuecomment-806571034

       

      Actual result:

      onChange is called during the initialization period.

       

      Expected result:

      Don't call onChange in the initialization period.

       

       

        Attachments

          Activity

            People

            Assignee:
            team-frontend-infra Product Team Frontend Infrastructure
            Reporter:
            jorge.gonzalez Jorge González
            Participants of an Issue:
            Recent user:
            Sophia Zhang
            Engineering Assignee:
            Julien Castelain (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 5 weeks, 3 days ago

                Packages

                Version Package
                7.4.0 CE GA1 DXP 7,4
                7.4.13 DXP GA1
                Master