Skip to content

Commit 11a8808

Browse files
committed
fix(form_language): avoid persistent rich editor toolbar when closing modal
1 parent 90a5796 commit 11a8808

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

js/scripts.js

+4
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,10 @@ var plugin_formcreator = new function() {
11631163
},
11641164
title: i18n.textdomain('formcreator').__('Update a translation', 'formcreator'),
11651165
close: function () {
1166+
// Remove unclosed TinyMCE toolbar
1167+
var tinyToolbar = document.querySelector('.tox-tinymce-aux');
1168+
tinyToolbar.parentNode.removeChild(tinyToolbar);
1169+
// Reload the tab
11661170
reloadTab();
11671171
},
11681172
fail: function () {

0 commit comments

Comments
 (0)