Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit d74a4e3

Browse files
authored
Merge pull request #3369 from magento-obsessive-owls/owls-ce
[Owls] PageBuilder Bug Fixes with core changes
2 parents f506643 + 4815ba3 commit d74a4e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/web/mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ define([
117117
jQuery.when.apply(jQuery, deferreds).done(function () {
118118
tinyMCE4.init(settings);
119119
this.getPluginButtons().hide();
120-
this.eventBus.attachEventHandler('open_browser_callback', this.openFileBrowser);
120+
this.eventBus.attachEventHandler('open_browser_callback', tinyMceEditors.get(self.id).openFileBrowser);
121121
}.bind(this));
122122
},
123123

@@ -129,7 +129,7 @@ define([
129129
removeEvents: function (wysiwygId) {
130130
var editor;
131131

132-
if (typeof tinyMceEditors !== 'undefined') {
132+
if (typeof tinyMceEditors !== 'undefined' && tinyMceEditors.get(wysiwygId)) {
133133
editor = tinyMceEditors.get(wysiwygId);
134134
varienGlobalEvents.removeEventHandler('tinymceChange', editor.onChangeContent);
135135
}

0 commit comments

Comments
 (0)