mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-20 12:21:28 +08:00
Made WYSIWYG editor translatable
- Created new translation file for editor view. - Added simple logic to format for tinymce. - Aligned some of the custom labels we were using.
This commit is contained in:
@ -12,16 +12,7 @@ function register(editor, url) {
|
||||
|
||||
editor.ui.registry.addButton('hr', {
|
||||
icon: 'horizontal-rule',
|
||||
tooltip: 'Horizontal line',
|
||||
onAction() {
|
||||
editor.execCommand('InsertHorizontalRule');
|
||||
}
|
||||
});
|
||||
|
||||
editor.ui.registry.addMenuItem('hr', {
|
||||
icon: 'horizontal-rule',
|
||||
text: 'Horizontal line',
|
||||
context: 'insert',
|
||||
tooltip: 'Insert horizontal line',
|
||||
onAction() {
|
||||
editor.execCommand('InsertHorizontalRule');
|
||||
}
|
||||
|
Reference in New Issue
Block a user