]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/plugins-about.js
ESLINT: Started inital pass at addressing issues
[bookstack] / resources / js / wysiwyg / plugins-about.js
index a9c0a9e64c5610b5d06819d91092120279e0f3c3..096b4f96805a98ba8676ed7c7f95789b096bc014 100644 (file)
@@ -1,8 +1,7 @@
 /**
  * @param {Editor} editor
- * @param {String} url
  */
-function register(editor, url) {
+function register(editor) {
     const aboutDialog = {
         title: 'About the WYSIWYG Editor',
         url: window.baseUrl('/help/wysiwyg'),
@@ -12,15 +11,14 @@ function register(editor, url) {
         icon: 'help',
         tooltip: 'About the editor',
         onAction() {
-            tinymce.activeEditor.windowManager.openUrl(aboutDialog);
+            window.tinymce.activeEditor.windowManager.openUrl(aboutDialog);
         },
     });
 }
 
 /**
- * @param {WysiwygConfigOptions} options
  * @return {register}
  */
-export function getPlugin(options) {
+export function getPlugin() {
     return register;
 }