Skip to content

Commit c51f94c

Browse files
committed
Stabilize Builds on Forward Ports Batch 35
1 parent 0bb740b commit c51f94c

File tree

1 file changed

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

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ define([
5252
this.$wysiwygEditorButton.add($(element)) : $(element);
5353
}.bind(this));
5454

55+
// disable editor completely after initialization is field is disabled
56+
varienGlobalEvents.attachEventHandler('wysiwygEditorInitialized', function () {
57+
if (this.disabled()) {
58+
this.setDisabled(true);
59+
}
60+
}.bind(this));
61+
5562
return this;
5663
},
5764

0 commit comments

Comments
 (0)