Skip to content

Commit ba97c84

Browse files
committed
fix(translation): delete rich editor's ghost toolbar
1 parent 462ea69 commit ba97c84

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

js/scripts.js

+5
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,11 @@ var plugin_formcreator = new function() {
11341134
}).fail(function () {
11351135
displayAjaxMessageAfterRedirect();
11361136
}).done(function () {
1137+
// Remove unclosed TinyMCE toolbar
1138+
var tinyToolbar = document.querySelector('.tox-tinymce-aux');
1139+
if (tinyToolbar) {
1140+
tinyToolbar.parentNode.removeChild(tinyToolbar);
1141+
}
11371142
that.showTranslationEditor(form);
11381143
});
11391144
}

0 commit comments

Comments
 (0)