2020-07-06 04:18:17 +08:00
|
|
|
<div component="wysiwyg-editor"
|
2023-09-17 20:29:06 +08:00
|
|
|
option:wysiwyg-editor:language="{{ $locale->htmlLang() }}"
|
2020-07-06 04:18:17 +08:00
|
|
|
option:wysiwyg-editor:page-id="{{ $model->id ?? 0 }}"
|
2023-09-17 20:29:06 +08:00
|
|
|
option:wysiwyg-editor:text-direction="{{ $locale->htmlDirection() }}"
|
2020-11-22 01:52:49 +08:00
|
|
|
option:wysiwyg-editor:image-upload-error-text="{{ trans('errors.image_upload_error') }}"
|
2021-05-27 01:23:27 +08:00
|
|
|
option:wysiwyg-editor:server-upload-limit-text="{{ trans('errors.server_upload_limit') }}"
|
2024-07-01 22:10:22 +08:00
|
|
|
class="flex-container-column flex-fill">
|
2024-05-27 22:39:41 +08:00
|
|
|
|
2024-07-01 22:10:22 +08:00
|
|
|
<div class="editor-container flex-container-column flex-fill" refs="wysiwyg-editor@edit-container">
|
2024-05-27 22:39:41 +08:00
|
|
|
</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 21:52:25 +08:00
|
|
|
|
2024-07-01 22:10:22 +08:00
|
|
|
<textarea refs="wysiwyg-editor@input" id="html-editor" hidden="hidden" name="html" rows="5">{{ old('html') ?? $model->html ?? '' }}</textarea>
|
2019-07-06 21:52:25 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@if($errors->has('html'))
|
|
|
|
<div class="text-neg text-small">{{ $errors->first('html') }}</div>
|
2022-02-07 05:17:08 +08:00
|
|
|
@endif
|
|
|
|
|
2024-05-27 22:39:41 +08:00
|
|
|
{{--TODO - @include('form.editor-translations')--}}
|