File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/web/mage/adminhtml/wysiwyg/tiny_mce Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ define([
117
117
jQuery . when . apply ( jQuery , deferreds ) . done ( function ( ) {
118
118
tinyMCE4 . init ( settings ) ;
119
119
this . getPluginButtons ( ) . hide ( ) ;
120
- this . eventBus . attachEventHandler ( 'open_browser_callback' , this . openFileBrowser ) ;
120
+ this . eventBus . attachEventHandler ( 'open_browser_callback' , tinyMceEditors . get ( self . id ) . openFileBrowser ) ;
121
121
} . bind ( this ) ) ;
122
122
} ,
123
123
@@ -129,7 +129,7 @@ define([
129
129
removeEvents : function ( wysiwygId ) {
130
130
var editor ;
131
131
132
- if ( typeof tinyMceEditors !== 'undefined' ) {
132
+ if ( typeof tinyMceEditors !== 'undefined' && tinyMceEditors . get ( wysiwygId ) ) {
133
133
editor = tinyMceEditors . get ( wysiwygId ) ;
134
134
varienGlobalEvents . removeEventHandler ( 'tinymceChange' , editor . onChangeContent ) ;
135
135
}
You can’t perform that action at this time.
0 commit comments