]> BookStack Code Mirror - bookstack/blob - resources/views/pages/parts/wysiwyg-editor.blade.php
Tests: Updated comment test to account for new editor usage
[bookstack] / resources / views / pages / parts / wysiwyg-editor.blade.php
1 <div component="wysiwyg-editor"
2      option:wysiwyg-editor:language="{{ $locale->htmlLang() }}"
3      option:wysiwyg-editor:page-id="{{ $model->id ?? 0 }}"
4      option:wysiwyg-editor:text-direction="{{ $locale->htmlDirection() }}"
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-container-column flex-fill flex">
8
9     <div class="editor-container flex-container-column flex-fill flex" refs="wysiwyg-editor@edit-container">
10     </div>
11
12 {{--    <div id="lexical-debug" style="white-space: pre-wrap; font-size: 12px; height: 200px; overflow-y: scroll; background-color: #000; padding: 1rem; border-radius: 4px; color: #FFF;"></div>--}}
13
14     <textarea refs="wysiwyg-editor@input" id="html-editor" hidden="hidden"  name="html" rows="5">{{ old('html') ?? $model->html ?? '' }}</textarea>
15 </div>
16
17 @if($errors->has('html'))
18     <div class="text-neg text-small">{{ $errors->first('html') }}</div>
19 @endif
20
21 @include('form.editor-translations')