Skip to content

Commit 992a750

Browse files
cspruielldavemacaulay
authored andcommitted
MC-4154: Banner Background Image disappear after saving Schedule Update page of CMS Block
- fixed JS console error when saving scheduled update
1 parent 1be7b04 commit 992a750

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)