]> BookStack Code Mirror - bookstack/blobdiff - resources/js/wysiwyg/ui/framework/manager.ts
Lexical: Updated toolbar & text node exporting
[bookstack] / resources / js / wysiwyg / ui / framework / manager.ts
index 7325303758337871dbec98d60e252d558f9311ef..7c0975da7e7193cf055bc8e29df3f97ff53db62a 100644 (file)
@@ -163,6 +163,10 @@ export class EditorUIManager {
         });
     }
 
+    getDefaultDirection(): 'rtl' | 'ltr' {
+        return this.getContext().options.textDirection === 'rtl' ? 'rtl' : 'ltr';
+    }
+
     protected updateContextToolbars(update: EditorUiStateUpdate): void {
         for (let i = this.activeContextToolbars.length - 1; i >= 0; i--) {
             const toolbar = this.activeContextToolbars[i];