Skip to content

Commit 97e7fd1

Browse files
author
vklymenko
committed
MAGETWO-69671: Could not save the WYSIWYG if configuration set to Disabled by Default
- replace "eval" to "window"
1 parent 48fe35e commit 97e7fd1

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Catalog/view/adminhtml/templates/catalog/wysiwyg

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/view/adminhtml/templates/catalog/wysiwyg/js.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var catalogWysiwygEditor = {
7575
;
7676

7777
if ($firedElement.length) {
78-
wysiwygObj = eval('wysiwyg' + firedElementId + '_editor');
78+
wysiwygObj = window['wysiwyg' + firedElementId + '_editor'];
7979
wysiwygObj.turnOff();
8080
if (tinyMCE.get(wysiwygObj.id)) {
8181
$firedElement.val(tinyMCE.get(wysiwygObj.id).getContent()).change();

0 commit comments

Comments
 (0)