Merge pull request #6567 from scinote-eln/revert-6438-revert-6430-SCI-9515-click-away-not-working-after-editing-chemical-drawing-in-rtf

Revert "Revert "Refocus on tinymce editor after marvinjs img update [SCI-9515]""
This commit is contained in:
Martin Artnik 2023-11-02 13:19:02 +01:00 committed by GitHub
commit f7df98a63d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();