From 16ebf0cbe8f6a9f2636f458ef92a7795ff94cdd8 Mon Sep 17 00:00:00 2001 From: Martin Artnik <85488244+artoscinote@users.noreply.github.com> Date: Thu, 2 Nov 2023 13:18:50 +0100 Subject: [PATCH] Revert "Revert "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 863539ed9..1a1ae02eb 100644 --- a/app/assets/javascripts/sitewide/marvinjs_editor.js +++ b/app/assets/javascripts/sitewide/marvinjs_editor.js @@ -201,6 +201,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();