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

Input-localized tab is broken, while switching between languages the content is lost.

    Details

      Description

      Reproduction steps:

      1.) Add to the property 'editor.wysiwyg.portal-impl.portlet.ddm.text_html.ftl=ckeditor' to the portal-ext.properties (use two lanuages for example English and Dutch).

      2.) Start the portal and navigate to Control Panel --> Content --> Message Boards, here select the three dots and Configuration. Change to Message Added Email and type in some content to the default language, change the language to Dutch, add some content and select the default language tab again.

      Result: The content is no longer available.

      JavaScript error in the browsers Console:

      "TypeError: Liferay.component(...).blur is not a function
          at _input_test_portlet_InputTestPortlet_INSTANCE_EOm5hBRE86hU_ffal_column1_0_OnBlurEditor (welkom-bij-hey-hema:19)
          at d.onBlurCallback (welkom-bij-hey-hema:61)
          at d.g (ckeditor.js?browserId=other&minifierType=js&languageId=en_GB&b=7010&t=1521010342941:6)
          at d.<anonymous> (ckeditor.js?browserId=other&minifierType=js&languageId=en_GB&b=7010&t=1521010342941:7)
          at d.window.CKEDITOR.window.CKEDITOR.dom.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js?browserId=other&minifierType=js&languageId=en_GB&b=7010&t=1521010342941:9)
          at CKEDITOR.focusManager.m (ckeditor.js?browserId=other&minifierType=js&languageId=en_GB&b=7010&t=1521010342941:212)
          at CKEDITOR.focusManager.<anonymous> (ckeditor.js?browserId=other&minifierType=js&languageId=en_GB&b=7010&t=1521010342941:213)
          at ckeditor.js?browserId=other&minifierType=js&languageId=en_GB&b=7010&t=1521010342941:22"
      

      Reverting ---LPS-77158---

      Also tested:

       7.0x @ commit (ae7c50606857c4cbd374ec32cd10a3df71b97f82) reproduced

       master @ commit (0317372fd618e12d068edffa62ce9010a7ca9fca) works

       

      Update:
      After the complete backport of LPS-77158 (together with LPS-79464), the JavaScript error is no longer present. The problem that "The content is no longer available" is still reproducible, though.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 30 weeks, 1 day ago

                  Packages

                  Version Package
                  7.0.0 DXP FP57
                  7.0.0 DXP SP9
                  7.0.X