Skip to content

Commit 94253c2

Browse files
committed
MC-3918: Inputting Text Into WYSIWYG Slows Application Way Down When Multiple WYSIWYG Content Types
- Fix issue when TinyMCE is disabled
1 parent bd005cb commit 94253c2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,11 @@ define([
127127
* @param {String} wysiwygId
128128
*/
129129
removeEvents: function (wysiwygId) {
130-
var editor = tinyMceEditors.get(wysiwygId);
130+
if (typeof tinyMceEditors !== "undefined") {
131+
var editor = tinyMceEditors.get(wysiwygId);
131132

132-
varienGlobalEvents.removeEventHandler('tinymceChange', editor.onChangeContent);
133+
varienGlobalEvents.removeEventHandler('tinymceChange', editor.onChangeContent);
134+
}
133135
},
134136

135137
/**

0 commit comments

Comments
 (0)