]> 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 f9a0f03cf3d3e2fda35e6902133e9b39a7473bf5..3bc85caa9d57a749128fad5f3cb9de02f57035d9 100644 (file)
@@ -1,11 +1,14 @@
-<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
-          @if($errors->has('html')) class="text-neg" @endif>@if(isset($model) || old('html')){{htmlspecialchars( old('html') ? old('html') : $model->html)}}@endif</textarea>
+    <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>
 
 @if($errors->has('html'))