Skip to content

Commit 032316d

Browse files
committed
Fixed js error when disabling element, but editor is not active
1 parent dbcc3c4 commit 032316d

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Ui/view/base/web/js/form/element

1 file changed

+1
-1
lines changed

app/code/Magento/Ui/view/base/web/js/form/element/wysiwyg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ define([
9494
this.$wysiwygEditorButton.attr('disabled', status);
9595

9696
/* eslint-disable no-undef */
97-
if (tinyMCE) {
97+
if (tinyMCE && tinyMCE.activeEditor) {
9898
_.each(tinyMCE.activeEditor.controlManager.controls, function (property, index, controls) {
9999
controls[property.id].setDisabled(status);
100100
});

0 commit comments

Comments
 (0)