]> BookStack Code Mirror - bookstack/blob - resources/views/pages/wysiwyg-editor.blade.php
Added front-end toggle and testing of inline attachments
[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      option:wysiwyg-editor:server-upload-limit-text="{{ trans('errors.server_upload_limit') }}"
6      class="flex-fill flex">
7
8     <textarea id="html-editor"  name="html" rows="5"
9           @if($errors->has('html')) class="text-neg" @endif>@if(isset($model) || old('html')){{ old('html') ? old('html') : $model->html }}@endif</textarea>
10 </div>
11
12 @if($errors->has('html'))
13     <div class="text-neg text-small">{{ $errors->first('html') }}</div>
14 @endif