BookStackApp_BookStack/resources/js/wysiwyg-tinymce/plugins-about.js
Dan Brown ebe2ca7faf
Lexical: Added about button/view
Re-used existing route and moved tinymce help to its own different
route. Added test to cover.
Added new external-content block to support in editor UI.
2024-12-17 22:40:28 +00:00

24 lines
490 B
JavaScript

/**
* @param {Editor} editor
*/
function register(editor) {
const aboutDialog = {
title: 'About the WYSIWYG Editor',
url: window.baseUrl('/help/tinymce'),
};
editor.ui.registry.addButton('about', {
icon: 'help',
tooltip: 'About the editor',
onAction() {
window.tinymce.activeEditor.windowManager.openUrl(aboutDialog);
},
});
}
/**
* @return {register}
*/
export function getPlugin() {
return register;
}