]> BookStack Code Mirror - bookstack/blobdiff - resources/views/pages/wysiwyg-editor.blade.php
Checked over recycle bin parent/child flows
[bookstack] / resources / views / pages / wysiwyg-editor.blade.php
index 1a67ee76f2d0992f7eb552878359f6d151db3b51..3bc85caa9d57a749128fad5f3cb9de02f57035d9 100644 (file)
@@ -1,10 +1,13 @@
-<div wysiwyg-editor class="flex-fill flex">
+<div component="wysiwyg-editor"
+     option:wysiwyg-editor:page-id="{{ $model->id ?? 0 }}"
+     option:wysiwyg-editor:text-direction="{{ config('app.rtl') ? 'rtl' : 'ltr' }}"
+     class="flex-fill flex">
 
     @exposeTranslations([
         'errors.image_upload_error',
     ])
 
-    <textarea id="html-editor"  name="html" rows="5" v-pre
+    <textarea id="html-editor"  name="html" rows="5"
           @if($errors->has('html')) class="text-neg" @endif>@if(isset($model) || old('html')){{ old('html') ? old('html') : $model->html }}@endif</textarea>
 </div>