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

Repeated JS errors while typing in CKEditor

    Details

    • Type: Task
    • Status: Selected for Development
    • Resolution: Unresolved
    • Affects Version/s: Master
    • Fix Version/s: None
    • Component/s: CKEditor
    • Labels:
      None

      Description

      Steps to reproduce:
      1. Make sure to use ckeditor_classic in the editors, by setting, at least, the following properties

      editor.wysiwyg.portal-web.docroot.html.taglib.ui.email_notification_settings.jsp=ckeditor_classic
      editor.wysiwyg.portal-impl.portlet.ddm.text_html.ftl=ckeditor_classic

      2. Go to the above instances of ckeditor. For instance, web content creation page or Instance Settings → Email → Account Created Notification (and the other options)
      3. Open Javascript console in your browser
      4. Type something in the ckeditor

      Observed: Console shows a JS exception for each typed character. This is the exception in the email pages

      Uncaught TypeError: Cannot read property 'updateInputLanguage' of undefined
          at _com_liferay_configuration_admin_web_portlet_InstanceSettingsPortlet_fcgv___onChangeEditor (manage?js_fast_load=...-notification:13830)
          at c.onChangeCallback (ClassicEditor.js?languageId=en_US:248)
          at c.d (ckeditor.js:10)
          at c.<anonymous> (ckeditor.js:11)
          at c.CKEDITOR.editor.CKEDITOR.editor.fire (ckeditor.js:13)
          at CKEDITOR.plugins.undo.UndoManager.type (ckeditor.js:1141)
          at CKEDITOR.plugins.undo.NativeEditingHandler.onKeyup (ckeditor.js:1152)
          at $.d (ckeditor.js:10)
          at $.fire (ckeditor.js:11)
          at HTMLBodyElement.<anonymous> (ckeditor.js:68)
      

      This is the exception in the web content creation

      VM4994:392 Uncaught TypeError: Cannot read property 'formValidator' of undefined
          at <anonymous>:392:53
          at c.onChangeCallback (ClassicEditor.js:68)
          at c.d (VM4976 ckeditor.js:10)
          at c.<anonymous> (VM4976 ckeditor.js:11)
          at c.CKEDITOR.editor.CKEDITOR.editor.fire (VM4976 ckeditor.js:13)
          at CKEDITOR.plugins.undo.UndoManager.save (VM4976 ckeditor.js:1143)
          at c.<anonymous> (VM4976 ckeditor.js:1139)
          at c.d (VM4976 ckeditor.js:10)
          at c.<anonymous> (VM4976 ckeditor.js:11)
          at c.CKEDITOR.editor.CKEDITOR.editor.fire (VM4976 ckeditor.js:13)
      

      Expected: no errors are shown.

      Notes:

      • I'm selecting CKEditor component as this error seems reproducible in a variety of places
      • Other instances seems to work fine (ex. web content description, mail notification settings for some portlets)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              team-frontend-infra Product Team Frontend Infrastructure
              Reporter:
              daniel.sanz Daniel Sanz
              Recent user:
              Julien Castelain
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package