]>
BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/plugins-about.js
projects
/
bookstack
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ESLINT: Started inital pass at addressing issues
[bookstack]
/
resources
/
js
/
wysiwyg
/
plugins-about.js
diff --git
a/resources/js/wysiwyg/plugins-about.js
b/resources/js/wysiwyg/plugins-about.js
index a9c0a9e64c5610b5d06819d91092120279e0f3c3..096b4f96805a98ba8676ed7c7f95789b096bc014 100644
(file)
--- a/
resources/js/wysiwyg/plugins-about.js
+++ b/
resources/js/wysiwyg/plugins-about.js
@@
-1,8
+1,7
@@
/**
* @param {Editor} editor
/**
* @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'),
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() {
icon: 'help',
tooltip: 'About the editor',
onAction() {
- tinymce.activeEditor.windowManager.openUrl(aboutDialog);
+
window.
tinymce.activeEditor.windowManager.openUrl(aboutDialog);
},
});
}
/**
},
});
}
/**
- * @param {WysiwygConfigOptions} options
* @return {register}
*/
* @return {register}
*/
-export function getPlugin(
options
) {
+export function getPlugin() {
return register;
}
return register;
}