From d80d0af5b82fc479fd7f3d21faaccd4ea6da2f75 Mon Sep 17 00:00:00 2001 From: Ivan Kljun Date: Thu, 12 Oct 2023 16:34:24 +0200 Subject: [PATCH] Refocus on tinymce editor after marvinjs img update [SCI-9515] --- app/assets/javascripts/sitewide/marvinjs_editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/sitewide/marvinjs_editor.js b/app/assets/javascripts/sitewide/marvinjs_editor.js index 9694fb1d9..c3330445f 100644 --- a/app/assets/javascripts/sitewide/marvinjs_editor.js +++ b/app/assets/javascripts/sitewide/marvinjs_editor.js @@ -200,6 +200,8 @@ var MarvinJsEditorApi = (function() { $('#modal_link' + json.id + ' .attachment-label').text(json.file_name); } $(marvinJsModal).modal('hide'); + + config.editor.focus(); config.button.dataset.inProgress = false; if (MarvinJsEditor.saveCallback) MarvinJsEditor.saveCallback();