core/modules/ckeditor/js/ckeditor.js | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/core/modules/ckeditor/js/ckeditor.js b/core/modules/ckeditor/js/ckeditor.js index f67ed62..c3e4ccc 100644 --- a/core/modules/ckeditor/js/ckeditor.js +++ b/core/modules/ckeditor/js/ckeditor.js @@ -210,6 +210,8 @@ * An object containing settings to be passed to the jQuery UI. */ openDialog: function (editor, url, existingValues, saveCallback, dialogSettings) { + var isInline = CKEDITOR.instances[editor.name].editable().isInline(); + // Locate a suitable place to display our loading indicator. var $target = $(editor.container.$); if (editor.elementMode === CKEDITOR.ELEMENT_MODE_REPLACE) { @@ -225,10 +227,13 @@ dialogSettings.dialogClass = classes.join(' '); dialogSettings.autoResize = Drupal.checkWidthBreakpoint(600); - // Add a "Loading…" message, hide it underneath the CKEditor toolbar, - // create a Drupal.Ajax instance to load the dialog and trigger it. - var $content = $('