Skip to content

Commit bac46ce

Browse files
Merge forwardport of #12141 to 2.3-develop branch
Applied pull request patch https://github.com/magento/magento2/pull/12141.patch (created by @vovayatsyuk) based on commit(s): 1. 032316d 2. 3b139c4
2 parents a29b455 + d73cca2 commit bac46ce

File tree

1 file changed

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

1 file changed

+0
-8
lines changed

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

-8
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@ define([
5050
this.$wysiwygEditorButton = $(element);
5151
}.bind(this));
5252

53-
// disable editor completely after initialization is field is disabled
54-
varienGlobalEvents.attachEventHandler('wysiwygEditorInitialized', function () {
55-
if (this.disabled()) {
56-
this.setDisabled(true);
57-
}
58-
}.bind(this));
59-
6053
return this;
6154
},
6255

@@ -108,7 +101,6 @@ define([
108101

109102
/* eslint-disable no-undef */
110103
if (typeof wysiwyg !== 'undefined' && wysiwyg.activeEditor()) {
111-
112104
if (wysiwyg && disabled) {
113105
wysiwyg.setEnabledStatus(false);
114106
wysiwyg.getPluginButtons().prop('disabled', 'disabled');

0 commit comments

Comments
 (0)