Skip to content

Commit d4e0c28

Browse files
authored
Use wysiwygAdapter instead of global tinyMCE variable
I realised that tinyMCE is already being required as the wysiwygAdapter, so I've updated the code to point to that dependency instead. Still works.
1 parent 3bcf0d8 commit d4e0c28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/web/mage/adminhtml/wysiwyg/widget.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ define([
456456
parameters: params,
457457
onComplete: function (transport) {
458458
try {
459-
editor = tinyMCE.get(this.widgetTargetId);
459+
editor = wysiwyg.get(this.widgetTargetId);
460460

461461
widgetTools.onAjaxSuccess(transport);
462462
widgetTools.dialogWindow.modal('closeModal');
@@ -513,7 +513,7 @@ define([
513513
* @return {null|wysiwyg.Editor|*}
514514
*/
515515
getWysiwyg: function () {
516-
return tinyMCE.get(this.widgetTargetId);
516+
return wysiwyg.get(this.widgetTargetId);
517517
},
518518

519519
/**

0 commit comments

Comments
 (0)