2022-02-07 18:19:04 -05:00
|
|
|
/**
|
|
|
|
* @param {Editor} editor
|
|
|
|
*/
|
2023-04-19 05:46:13 -04:00
|
|
|
function register(editor) {
|
2022-02-07 18:19:04 -05:00
|
|
|
const aboutDialog = {
|
|
|
|
title: 'About the WYSIWYG Editor',
|
|
|
|
url: window.baseUrl('/help/wysiwyg'),
|
|
|
|
};
|
|
|
|
|
|
|
|
editor.ui.registry.addButton('about', {
|
|
|
|
icon: 'help',
|
|
|
|
tooltip: 'About the editor',
|
|
|
|
onAction() {
|
2023-04-19 05:46:13 -04:00
|
|
|
window.tinymce.activeEditor.windowManager.openUrl(aboutDialog);
|
2023-04-18 17:20:02 -04:00
|
|
|
},
|
2022-02-07 18:19:04 -05:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return {register}
|
|
|
|
*/
|
2023-04-19 05:46:13 -04:00
|
|
|
export function getPlugin() {
|
2022-02-07 18:19:04 -05:00
|
|
|
return register;
|
2023-04-18 17:20:02 -04:00
|
|
|
}
|