]> BookStack Code Mirror - bookstack/blob - resources/views/pages/wysiwyg-editor.blade.php
Fix French translations
[bookstack] / resources / views / pages / wysiwyg-editor.blade.php
1 <div component="wysiwyg-editor"
2      option:wysiwyg-editor:page-id="{{ $model->id ?? 0 }}"
3      option:wysiwyg-editor:text-direction="{{ config('app.rtl') ? 'rtl' : 'ltr' }}"
4      option:wysiwyg-editor:image-upload-error-text="{{ trans('errors.image_upload_error') }}"
5      class="flex-fill flex">
6
7     <textarea id="html-editor"  name="html" rows="5"
8           @if($errors->has('html')) class="text-neg" @endif>@if(isset($model) || old('html')){{ old('html') ? old('html') : $model->html }}@endif</textarea>
9 </div>
10
11 @if($errors->has('html'))
12     <div class="text-neg text-small">{{ $errors->first('html') }}</div>
13 @endif