Skip to content

Commit

Permalink
Fixed showing of plugin buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed May 9, 2023
1 parent 56908d5 commit 828ef09
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/mage/adminhtml/wysiwyg/tinymce/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ tinyMceWysiwygSetup.prototype =
tinyMceEditors = $H({});
}
tinyMceEditors.set(this.id, this);
this.turnOff();
},

setup: function(mode)
Expand Down Expand Up @@ -442,15 +443,15 @@ tinyMceWysiwygSetup.prototype =

turnOn: function() {
this.closePopups();
tinymce.init(this)
tinymce.init(this);
this.getPluginButtons().forEach(function (e) {
e.hide();
});
},

turnOff: function() {
this.closePopups();
tinymce.activeEditor.remove();
if (tinymce.activeEditor) tinymce.activeEditor.remove();
this.getPluginButtons().forEach(function (e) {
e.show();
});
Expand Down

0 comments on commit 828ef09

Please sign in to comment.