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

Dynamically load CKEditor toolbars on Window resize

    Details

      Description

      As a content editor, I would like the CKEditor toolbar to change dynamically on Window resize, rather than just on CKEditor initialization. Because I resize my window, sometimes losing the ability to modify content because the toolbar loaded for a smaller screen size. Requiring me to save my work and reload the page.

      CKEditor has no built-in feature which supports this.

      Possible Pseudo Solution:
      portal-web/docroot/html/js/editor/ckeditor.jsp

      //On Window resize event
      CKEDITOR.instances.<%= name %>.destroy();
      CKEDITOR.replace(
          '<%= name %>',
          ...
          toolbar: getToolbarSet(...)
      );
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Packages

                  Version Package
                  7.0.0 M5