File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
lib/web/mage/adminhtml/wysiwyg Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -456,7 +456,7 @@ define([
456
456
parameters : params ,
457
457
onComplete : function ( transport ) {
458
458
try {
459
- editor = wysiwyg . activeEditor ( ) ;
459
+ editor = wysiwyg . get ( this . widgetTargetId ) ;
460
460
461
461
widgetTools . onAjaxSuccess ( transport ) ;
462
462
widgetTools . dialogWindow . modal ( 'closeModal' ) ;
@@ -469,7 +469,7 @@ define([
469
469
editor . selection . select ( activeNode ) ;
470
470
editor . selection . setContent ( transport . responseText ) ;
471
471
} else if ( this . bMark ) {
472
- wysiwyg . activeEditor ( ) . selection . moveToBookmark ( this . bMark ) ;
472
+ editor . selection . moveToBookmark ( this . bMark ) ;
473
473
}
474
474
}
475
475
@@ -513,7 +513,7 @@ define([
513
513
* @return {null|wysiwyg.Editor|* }
514
514
*/
515
515
getWysiwyg : function ( ) {
516
- return wysiwyg . activeEditor ( ) ;
516
+ return wysiwyg . get ( this . widgetTargetId ) ;
517
517
} ,
518
518
519
519
/**
You can’t perform that action at this time.
0 commit comments