Unverified Commit 7bb0757c authored by Lauri Timmanee's avatar Lauri Timmanee
Browse files

Issue #2986147 by Wim Leers, mroycroft, rp7, sacarney, dkontorovsky: Autogrow...

Issue #2986147 by Wim Leers, mroycroft, rp7, sacarney, dkontorovsky: Autogrow for non-admin users causes CKEditor grow past the viewport when there is a lot of content in the CKEditor
parent 07d85163
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -346,6 +346,9 @@
  // Set autoGrow to make the editor grow the moment it is created.
  CKEDITOR.config.autoGrow_onStartup = true;

  // Default max height. Will be updated as the viewport changes.
  CKEDITOR.config.autoGrow_maxHeight = 0.7 * window.innerHeight;

  // Set the CKEditor cache-busting string to the same value as Drupal.
  CKEDITOR.timestamp = drupalSettings.ckeditor.timestamp;

+2 −0
Original line number Diff line number Diff line
@@ -193,6 +193,8 @@

  CKEDITOR.config.autoGrow_onStartup = true;

  CKEDITOR.config.autoGrow_maxHeight = 0.7 * window.innerHeight;

  CKEDITOR.timestamp = drupalSettings.ckeditor.timestamp;

  if (AjaxCommands) {