]> BookStack Code Mirror - bookstack/blob - resources/views/pages/parts/wysiwyg-editor.blade.php
Added cache breaker to tinymce loading systems
[bookstack] / resources / views / pages / parts / wysiwyg-editor.blade.php
1 <div component="wysiwyg-editor"
2      option:wysiwyg-editor:language="{{ config('app.lang') }}"
3      option:wysiwyg-editor:page-id="{{ $model->id ?? 0 }}"
4      option:wysiwyg-editor:text-direction="{{ config('app.rtl') ? 'rtl' : 'ltr' }}"
5      option:wysiwyg-editor:image-upload-error-text="{{ trans('errors.image_upload_error') }}"
6      option:wysiwyg-editor:server-upload-limit-text="{{ trans('errors.server_upload_limit') }}"
7      class="flex-fill flex">
8
9     <textarea id="html-editor"  name="html" rows="5"
10           @if($errors->has('html')) class="text-neg" @endif>@if(isset($model) || old('html')){{ old('html') ? old('html') : $model->html }}@endif</textarea>
11 </div>
12
13 @if($errors->has('html'))
14     <div class="text-neg text-small">{{ $errors->first('html') }}</div>
15 @endif
16
17 @include('pages.parts.editor-translations')