]> BookStack Code Mirror - bookstack/blob - resources/views/pages/wysiwyg-editor.blade.php
New translations settings.php (Chinese Simplified)
[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      class="flex-fill flex">
5
6     @exposeTranslations([
7         'errors.image_upload_error',
8     ])
9
10     <textarea id="html-editor"  name="html" rows="5"
11           @if($errors->has('html')) class="text-neg" @endif>@if(isset($model) || old('html')){{ old('html') ? old('html') : $model->html }}@endif</textarea>
12 </div>
13
14 @if($errors->has('html'))
15     <div class="text-neg text-small">{{ $errors->first('html') }}</div>
16 @endif