mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-26 04:05:57 +00:00
![Dan Brown](/assets/img/avatar_default.png)
- To display license info along with shortcuts. - Extracted out plain layout from 503 error page. - Added tests to ensure license references are as expected.
29 lines
560 B
JavaScript
29 lines
560 B
JavaScript
/**
|
|
* @param {Editor} editor
|
|
* @param {String} url
|
|
*/
|
|
function register(editor, url) {
|
|
|
|
const aboutDialog = {
|
|
title: 'About the WYSIWYG Editor',
|
|
url: window.baseUrl('/help/wysiwyg'),
|
|
};
|
|
|
|
editor.ui.registry.addButton('about', {
|
|
icon: 'help',
|
|
tooltip: 'About the editor',
|
|
onAction() {
|
|
tinymce.activeEditor.windowManager.openUrl(aboutDialog);
|
|
}
|
|
});
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
* @param {WysiwygConfigOptions} options
|
|
* @return {register}
|
|
*/
|
|
export function getPlugin(options) {
|
|
return register;
|
|
} |