]> BookStack Code Mirror - bookstack/blob - resources/js/wysiwyg/plugins-about.js
Mail: updated peer verify option name and added test
[bookstack] / resources / js / wysiwyg / plugins-about.js
1 /**
2  * @param {Editor} editor
3  * @param {String} url
4  */
5 function register(editor, url) {
6
7     const aboutDialog = {
8         title: 'About the WYSIWYG Editor',
9         url: window.baseUrl('/help/wysiwyg'),
10     };
11
12     editor.ui.registry.addButton('about', {
13         icon: 'help',
14         tooltip: 'About the editor',
15         onAction() {
16             tinymce.activeEditor.windowManager.openUrl(aboutDialog);
17         }
18     });
19
20 }
21
22
23 /**
24  * @param {WysiwygConfigOptions} options
25  * @return {register}
26  */
27 export function getPlugin(options) {
28     return register;
29 }