mirror of
				https://github.com/BookStackApp/BookStack.git
				synced 2025-11-03 02:13:16 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			490 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			490 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
/**
 | 
						|
 * @param {Editor} editor
 | 
						|
 */
 | 
						|
function register(editor) {
 | 
						|
    const aboutDialog = {
 | 
						|
        title: 'About the WYSIWYG Editor',
 | 
						|
        url: window.baseUrl('/help/wysiwyg'),
 | 
						|
    };
 | 
						|
 | 
						|
    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;
 | 
						|
}
 |