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

CKEDITOR does not detach debounce on Cancel with SPA enabled

    Details

      Description

      Because of the way Liferay SPA (senna.js) works, when you cancel a new thread on the message board using CKEDITOR, the debounce function watching CKEDITOR does not properly get detached.

      This causes the function to get called when CKEDITOR no longer is available on the current page, causing an error to occur.

      Steps to reproduce:

      1. Set Message Boards editor to CKEDITOR by adding the following to your portal-ext.properties file:
        editor.wysiwyg.default=ckeditor
        editor.wysiwyg.portal-impl.portlet.ddm.text_html.ftl=ckeditor
        editor.wysiwyg.portal-web.docroot.html.portlet.announcements.edit_entry.jsp=ckeditor
        editor.wysiwyg.portal-web.docroot.html.portlet.blogs.edit_entry.jsp=ckeditor
        editor.wysiwyg.portal-web.docroot.html.portlet.mail.edit.jsp=ckeditor
        editor.wysiwyg.portal-web.docroot.html.portlet.mail.edit_message.jsp=ckeditor
        editor.wysiwyg.portal-web.docroot.html.portlet.message_boards.edit_message.bb_code.jsp=ckeditor_bbcode
        editor.wysiwyg.portal-web.docroot.html.portlet.message_boards.edit_message.html.jsp=ckeditor
        editor.wysiwyg.portal-web.docroot.html.taglib.ui.discussion.jsp=ckeditor
        editor.wysiwyg.portal-web.docroot.html.taglib.ui.email_notification_settings.jsp=ckeditor
      2. Add Message Board portlet to any page
      3. Click "Post New Thread"
      4. Click "Cancel"
      5. Resize the Browser

      Expected Result: Browser resizes normally
      Actual Result: Error occurs because CKEDITOR is null

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 33 weeks, 6 days ago

                Packages

                Version Package
                7.0.0 DXP FP45
                7.0.6 CE GA7
                7.0.0 DXP SP8
                7.0.X
                7.1.0 M2
                7.1.X
                Master