core/modules/ckeditor/js/plugins/drupalimage/plugin.js | 4 +++- core/modules/ckeditor/js/plugins/drupallink/plugin.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/core/modules/ckeditor/js/plugins/drupalimage/plugin.js b/core/modules/ckeditor/js/plugins/drupalimage/plugin.js index ecd6788..cfe1c30 100644 --- a/core/modules/ckeditor/js/plugins/drupalimage/plugin.js +++ b/core/modules/ckeditor/js/plugins/drupalimage/plugin.js @@ -34,7 +34,6 @@ CKEDITOR.plugins.add('drupalimage', { } function saveCallback (returnValues) { - // Save snapshot for undo support. editor.fire('saveSnapshot'); // Create a new image element if needed. @@ -62,6 +61,9 @@ CKEDITOR.plugins.add('drupalimage', { } } } + + // Save snapshot for undo support. + editor.fire('saveSnapshot'); } // Drupal.t() will not work inside CKEditor plugins because CKEditor diff --git a/core/modules/ckeditor/js/plugins/drupallink/plugin.js b/core/modules/ckeditor/js/plugins/drupallink/plugin.js index 05a062b..d4ede5c 100644 --- a/core/modules/ckeditor/js/plugins/drupallink/plugin.js +++ b/core/modules/ckeditor/js/plugins/drupallink/plugin.js @@ -34,7 +34,6 @@ CKEDITOR.plugins.add('drupallink', { // Prepare a save callback to be used upon saving the dialog. var saveCallback = function (returnValues) { - // Save snapshot for undo support. editor.fire('saveSnapshot'); // Create a new link element if needed. @@ -74,6 +73,9 @@ CKEDITOR.plugins.add('drupallink', { } } } + + // Save snapshot for undo support. + editor.fire('saveSnapshot'); }; // Drupal.t() will not work inside CKEditor plugins because CKEditor // loads the JavaScript file instead of Drupal. Pull translated strings