File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
app/code/Magento/Ui/view/base/web/js/form/element Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -106,12 +106,16 @@ define([
106
106
this . $wysiwygEditorButton . removeProp ( 'disabled' ) ;
107
107
}
108
108
109
- if ( wysiwyg && disabled ) {
110
- wysiwyg . setEnabledStatus ( false ) ;
111
- wysiwyg . getPluginButtons ( ) . prop ( 'disabled' , 'disabled' ) ;
112
- } else if ( wysiwyg ) {
113
- wysiwyg . setEnabledStatus ( true ) ;
114
- wysiwyg . getPluginButtons ( ) . removeProp ( 'disabled' ) ;
109
+ /* eslint-disable no-undef */
110
+ if ( typeof wysiwyg !== 'undefined' && wysiwyg . activeEditor ( ) ) {
111
+
112
+ if ( wysiwyg && disabled ) {
113
+ wysiwyg . setEnabledStatus ( false ) ;
114
+ wysiwyg . getPluginButtons ( ) . prop ( 'disabled' , 'disabled' ) ;
115
+ } else if ( wysiwyg ) {
116
+ wysiwyg . setEnabledStatus ( true ) ;
117
+ wysiwyg . getPluginButtons ( ) . removeProp ( 'disabled' ) ;
118
+ }
115
119
}
116
120
}
117
121
} ) ;
You can’t perform that action at this time.
0 commit comments