2020-07-05 21:18:17 +01:00
|
|
|
<div component="wysiwyg-editor"
|
2023-09-17 13:29:06 +01:00
|
|
|
option:wysiwyg-editor:language="{{ $locale->htmlLang() }}"
|
2020-07-05 21:18:17 +01:00
|
|
|
option:wysiwyg-editor:page-id="{{ $model->id ?? 0 }}"
|
2023-09-17 13:29:06 +01:00
|
|
|
option:wysiwyg-editor:text-direction="{{ $locale->htmlDirection() }}"
|
2020-11-21 17:52:49 +00:00
|
|
|
option:wysiwyg-editor:image-upload-error-text="{{ trans('errors.image_upload_error') }}"
|
2021-05-26 18:23:27 +01:00
|
|
|
option:wysiwyg-editor:server-upload-limit-text="{{ trans('errors.server_upload_limit') }}"
|
2024-05-27 15:39:41 +01:00
|
|
|
class="">
|
|
|
|
|
2024-05-27 20:23:45 +01:00
|
|
|
<div>
|
|
|
|
<button type="button" id="lexical-button">Callout</button>
|
|
|
|
</div>
|
|
|
|
|
2024-05-27 15:39:41 +01:00
|
|
|
<div refs="wysiwyg-editor@edit-area" contenteditable="true">
|
2024-05-28 15:09:50 +01:00
|
|
|
<p id="Content!">Some <strong>content</strong> here</p>
|
2024-05-27 15:39:41 +01:00
|
|
|
<h2>List below this h2 header</h2>
|
|
|
|
<ul>
|
|
|
|
<li>Hello</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<p class="callout danger">
|
|
|
|
Hello there, this is an info callout
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<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>
|
2019-07-06 14:52:25 +01:00
|
|
|
|
2024-05-27 15:39:41 +01:00
|
|
|
{{-- <textarea id="html-editor" name="html" rows="5"--}}
|
|
|
|
{{-- @if($errors->has('html')) class="text-neg" @endif>@if(isset($model) || old('html')){{ old('html') ? old('html') : $model->html }}@endif</textarea>--}}
|
2019-07-06 14:52:25 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@if($errors->has('html'))
|
|
|
|
<div class="text-neg text-small">{{ $errors->first('html') }}</div>
|
2022-02-06 21:17:08 +00:00
|
|
|
@endif
|
|
|
|
|
2024-05-27 15:39:41 +01:00
|
|
|
{{--TODO - @include('form.editor-translations')--}}
|