Skip to content

Commit c053896

Browse files
committed
MC-5622: Unable to input text into TinyMCE4 WYSIWYG area on IE11 in Catalog Product
1 parent cf69967 commit c053896

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ define([
2020
return Abstract.extend({
2121
defaults: {
2222
elementSelector: 'textarea',
23-
suffixRegExpPattern: '\\${ \\$.wysiwygUniqueSuffix }',
23+
suffixRegExpPattern: '${ $.wysiwygUniqueSuffix }',
2424
$wysiwygEditorButton: '',
2525
links: {
2626
value: '${ $.provider }:${ $.dataScope }'
@@ -64,6 +64,7 @@ define([
6464
/** @inheritdoc */
6565
initConfig: function (config) {
6666
var pattern = config.suffixRegExpPattern || this.constructor.defaults.suffixRegExpPattern;
67+
pattern = pattern.replace(/\$/g, '\\$&');
6768

6869
config.content = config.content.replace(new RegExp(pattern, 'g'), this.getUniqueSuffix(config));
6970
this._super();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ define([
577577
* Update text area.
578578
*/
579579
updateTextArea: function () {
580-
var editor = tinyMCE4.get(this.getId()),
580+
var editor = this.activeEditor(),
581581
content;
582582

583583
if (!editor) {

0 commit comments

Comments
 (0)