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

Reoccurring issue: Quickly switching language in web content breaks the content of editor

    Details

      Description

      Description
      If you're using AlloyEditor or CKEditor, when you open a web content with several translations and an editor field, if you quickly change among the translations, the content in the editor is mixed up. Also at initial load if you quickly change local, you can corrupt the content. This issue is the same as in ----LPS-77158----

      Reproduction steps for issue 1

      0.- [Optional] To set CKEditor, set on you portal-ext.properties:
      editor.wysiwyg.default=ckeditor
      editor.wysiwyg.portal-impl.portlet.ddm.text_html.ftl=ckeditor

      1.- Go to Content > 'Web Content' and add a new basic Web Content with English content "en" and add a German translation "de".
      2.- Add a 'Web Content Display' portlet on a page and configure the web content created in Step 1 to be displayed.
      3.- Click on "Edit Web Content" button in the Web Content Display portlet. The overlay of Web Content edit view will be opened.
      4.- Before the content in the editor is rendered, click on the German translation button as quickly as possible then click on the English translation.

       Expected result: The locales stores their correct value: "en" under English "de" under German

       Actual result: Both the English and German translation has the content "en"

      ------------------------

      Reproduction steps for issue 2

      0.- [Optional] To set CKEditor, set on you portal-ext.properties:
      editor.wysiwyg.default=ckeditor
      editor.wysiwyg.portal-impl.portlet.ddm.text_html.ftl=ckeditor

      1.- Go to Content > 'Web Content' and add a new basic Web Content with English content "en" and atleast 2 other locales with different content.
      2.- Add a 'Web Content Display' portlet on a page and configure the web content created in Step 1 to be displayed.
      3.- Click on "Edit Web Content" button in the Web Content Display portlet. The overlay of Web Content edit view will be opened.
      4.- When the editor rendered, start clicking trough locales, you might have to click trough several times.

       Expected result: The locales stores their correct value

       Actual result: Some of the locale's value changed

       ------------------------

      Hints to reproduce the issues

      • Use CKEditor since is the slowest editor.
      • Use Chrome Browser Console and reduce 6x the CPU (from Performance tab)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 13 weeks, 4 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP51
                  7.0.0 DXP SP9
                  7.0.X
                  7.1.0 Beta 3
                  7.1.X
                  Master