X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/c6ad16dba657c82512ae495a4a38b99b8cfa9eeb..refs/pull/4317/head:/resources/js/wysiwyg/plugins-about.js diff --git a/resources/js/wysiwyg/plugins-about.js b/resources/js/wysiwyg/plugins-about.js index 1585de72d..096b4f968 100644 --- a/resources/js/wysiwyg/plugins-about.js +++ b/resources/js/wysiwyg/plugins-about.js @@ -1,9 +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'), @@ -13,17 +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; -} \ No newline at end of file +}