We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1be7b04 commit 992a750Copy full SHA for 992a750
lib/web/mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter.js
@@ -129,7 +129,7 @@ define([
129
removeEvents: function (wysiwygId) {
130
var editor;
131
132
- if (typeof tinyMceEditors !== 'undefined') {
+ if (typeof tinyMceEditors !== 'undefined' && tinyMceEditors.get(wysiwygId)) {
133
editor = tinyMceEditors.get(wysiwygId);
134
varienGlobalEvents.removeEventHandler('tinymceChange', editor.onChangeContent);
135
}
0 commit comments