Skip to content

Commit

Permalink
fix tab changed on first load (OpenMage#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
empiricompany authored Aug 8, 2023
1 parent d2cdcca commit d739ce3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions js/mage/adminhtml/wysiwyg/tinymce/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ tinyMceWysiwygSetup.prototype =
this.selector = 'textarea#' + htmlId;
this.config = config;
varienGlobalEvents.attachEventHandler('tinymceChange', this.onChangeContent.bind(this));
varienGlobalEvents.attachEventHandler('tinymceBeforeSetContent', this.beforeSetContent.bind(this));
varienGlobalEvents.attachEventHandler('tinymceSetContent', this.updateTextArea.bind(this));
varienGlobalEvents.attachEventHandler('tinymceSaveContent', this.saveContent.bind(this));

if (typeof tinyMceEditors === 'undefined') {
window.tinyMceEditors = $H({});
Expand Down Expand Up @@ -226,7 +223,6 @@ tinyMceWysiwygSetup.prototype =
},

onChangeContent: function () {
this.updateTextArea();
if (this.config.tab_id) {
var tab = document.querySelector('a[id$=' + this.config.tab_id + ']');
if ($(tab) != undefined && $(tab).hasClassName('tab-item-link')) {
Expand Down

0 comments on commit d739ce3

Please sign in to comment.