]> BookStack Code Mirror - bookstack/blob - resources/views/pages/parts/wysiwyg-editor.blade.php
Lexical: Added custom id-supporting paragraph blocks
[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="">
8
9     <div>
10         <button type="button" id="lexical-button">Callout</button>
11     </div>
12
13     <div refs="wysiwyg-editor@edit-area" contenteditable="true">
14         <p id="Content!">Some <strong>content</strong> here</p>
15         <h2>List below this h2 header</h2>
16         <ul>
17             <li>Hello</li>
18         </ul>
19
20         <p class="callout danger">
21             Hello there, this is an info callout
22         </p>
23     </div>
24
25     <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>
26
27 {{--    <textarea id="html-editor"  name="html" rows="5"--}}
28 {{--          @if($errors->has('html')) class="text-neg" @endif>@if(isset($model) || old('html')){{ old('html') ? old('html') : $model->html }}@endif</textarea>--}}
29 </div>
30
31 @if($errors->has('html'))
32     <div class="text-neg text-small">{{ $errors->first('html') }}</div>
33 @endif
34
35 {{--TODO - @include('form.editor-translations')--}}