]> BookStack Code Mirror - bookstack/blobdiff - resources/views/pages/parts/markdown-editor.blade.php
Locales: Performed cleanup and alignment of locale handling
[bookstack] / resources / views / pages / parts / markdown-editor.blade.php
index c488f0e115c8b9eb49120735fd898583440f1866..18a418f106e797dd3aa923f4fcaf63e3414d4fd0 100644 (file)
@@ -1,6 +1,6 @@
 <div id="markdown-editor" component="markdown-editor"
      option:markdown-editor:page-id="{{ $model->id ?? 0 }}"
-     option:markdown-editor:text-direction="{{ config('app.rtl') ? 'rtl' : 'ltr' }}"
+     option:markdown-editor:text-direction="{{ $locale->htmlDirection() }}"
      option:markdown-editor:image-upload-error-text="{{ trans('errors.image_upload_error') }}"
      option:markdown-editor:server-upload-limit-text="{{ trans('errors.server_upload_limit') }}"
      class="flex-fill flex code-fill">