Skip to content

Commit

Permalink
fix(form_language): avoid persistent rich editor toolbar when closing…
Browse files Browse the repository at this point in the history
… modal
  • Loading branch information
btry committed Jan 31, 2023
1 parent 90a5796 commit 11a8808
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions js/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -1163,6 +1163,10 @@ var plugin_formcreator = new function() {
},
title: i18n.textdomain('formcreator').__('Update a translation', 'formcreator'),
close: function () {
// Remove unclosed TinyMCE toolbar
var tinyToolbar = document.querySelector('.tox-tinymce-aux');
tinyToolbar.parentNode.removeChild(tinyToolbar);
// Reload the tab
reloadTab();
},
fail: function () {
Expand Down

0 comments on commit 11a8808

Please sign in to comment.