File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
app/code/Magento/Ui/view/base/web/js/form/element
lib/web/mage/adminhtml/wysiwyg/tiny_mce Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ define([
20
20
return Abstract . extend ( {
21
21
defaults : {
22
22
elementSelector : 'textarea' ,
23
- suffixRegExpPattern : '\\ ${ \\ $.wysiwygUniqueSuffix }' ,
23
+ suffixRegExpPattern : '${ $.wysiwygUniqueSuffix }' ,
24
24
$wysiwygEditorButton : '' ,
25
25
links : {
26
26
value : '${ $.provider }:${ $.dataScope }'
@@ -64,6 +64,7 @@ define([
64
64
/** @inheritdoc */
65
65
initConfig : function ( config ) {
66
66
var pattern = config . suffixRegExpPattern || this . constructor . defaults . suffixRegExpPattern ;
67
+ pattern = pattern . replace ( / \$ / g, '\\$&' ) ;
67
68
68
69
config . content = config . content . replace ( new RegExp ( pattern , 'g' ) , this . getUniqueSuffix ( config ) ) ;
69
70
this . _super ( ) ;
Original file line number Diff line number Diff line change @@ -577,7 +577,7 @@ define([
577
577
* Update text area.
578
578
*/
579
579
updateTextArea : function ( ) {
580
- var editor = tinyMCE4 . get ( this . getId ( ) ) ,
580
+ var editor = this . activeEditor ( ) ,
581
581
content ;
582
582
583
583
if ( ! editor ) {
You can’t perform that action at this time.
0 commit comments