Skip to content

Commit 9d11617

Browse files
committed
AC-229: Upgrade and remove tinymce4
- Fix static tests
1 parent 5569c19 commit 9d11617

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/web/mage/adminhtml/wysiwyg/tiny_mce/plugins/magentowidget/editor_plugin.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ define([
1515

1616
/**
1717
* @param {tinymce.Editor} editor - Editor instance that the plugin is initialized in.
18-
* @param {String} url - Absolute URL to where the plugin is located.
1918
*/
20-
init: function (editor, url) {
19+
init: function (editor) {
2120
var self = this;
2221

2322
this.activePlaceholder = null;
@@ -53,7 +52,7 @@ define([
5352
* execute openVariablesSlideout for onAction callback
5453
*/
5554
onAction: function () {
56-
editor.execCommand('mceMagentowidget')
55+
editor.execCommand('mceMagentowidget');
5756
},
5857

5958
/**
@@ -76,7 +75,7 @@ define([
7675
}
7776
});
7877
}
79-
})
78+
});
8079

8180
// Add a widget placeholder image double click callback
8281
editor.on('dblClick', function (e) {

0 commit comments

Comments
 (0)