X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/921131f99949960f448b2cfbb0ad78edc8d4f24a..refs/pull/3693/head:/resources/js/components/wysiwyg-editor.js diff --git a/resources/js/components/wysiwyg-editor.js b/resources/js/components/wysiwyg-editor.js index f6ecb368a..446f2ca49 100644 --- a/resources/js/components/wysiwyg-editor.js +++ b/resources/js/components/wysiwyg-editor.js @@ -10,6 +10,7 @@ class WysiwygEditor { this.isDarkMode = document.documentElement.classList.contains('dark-mode'); this.tinyMceConfig = buildEditorConfig({ + language: this.$opts.language, containerElement: this.elem, darkMode: this.isDarkMode, textDirection: this.textDirection, @@ -18,7 +19,8 @@ class WysiwygEditor { translations: { imageUploadErrorText: this.$opts.imageUploadErrorText, serverUploadLimitText: this.$opts.serverUploadLimitText, - } + }, + translationMap: window.editor_translations, }); window.$events.emitPublic(this.elem, 'editor-tinymce::pre-init', {config: this.tinyMceConfig});