1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03: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:
Dan Brown
2022-02-06 21:17:08 +00:00
parent 921131f999
commit ef211a76ae
9 changed files with 169 additions and 22 deletions

View File

@ -6,9 +6,9 @@ function register(editor, url) {
// Custom Image picker button
editor.ui.registry.addButton('imagemanager-insert', {
title: 'Insert an image',
title: 'Insert image',
icon: 'image',
tooltip: 'Insert an image',
tooltip: 'Insert image',
onAction() {
window.ImageManager.show(function (image) {
const imageUrl = image.thumbs.display || image.url;