Skip to content

Commit

Permalink
fix(translation): delete rich editor's ghost toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Apr 11, 2023
1 parent 462ea69 commit ba97c84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,11 @@ var plugin_formcreator = new function() {
}).fail(function () {
displayAjaxMessageAfterRedirect();
}).done(function () {
// Remove unclosed TinyMCE toolbar
var tinyToolbar = document.querySelector('.tox-tinymce-aux');
if (tinyToolbar) {
tinyToolbar.parentNode.removeChild(tinyToolbar);
}
that.showTranslationEditor(form);
});
}
Expand Down

0 comments on commit ba97c84

Please sign in to comment.