BookStack/resources/views/pages/parts/wysiwyg-editor-tinymce.blade.php
Dan Brown 5a4f595341
Editors: Added lexical editor for testing
Started basic playground for testing lexical as a new WYSIWYG editor.
Moved out tinymce to be under wysiwyg-tinymce instead so lexical is the
default, but TinyMce code remains.
2024-05-27 15:39:41 +01:00

21 lines
987 B
PHP

@push('head')
<script src="{{ versioned_asset('libs/tinymce/tinymce.min.js') }}" nonce="{{ $cspNonce }}"></script>
@endpush
<div component="wysiwyg-editor-tinymce"
option:wysiwyg-editor-tinymce:language="{{ $locale->htmlLang() }}"
option:wysiwyg-editor-tinymce:page-id="{{ $model->id ?? 0 }}"
option:wysiwyg-editor-tinymce:text-direction="{{ $locale->htmlDirection() }}"
option:wysiwyg-editor-tinymce:image-upload-error-text="{{ trans('errors.image_upload_error') }}"
option:wysiwyg-editor-tinymce:server-upload-limit-text="{{ trans('errors.server_upload_limit') }}"
class="flex-fill flex">
<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>
</div>
@if($errors->has('html'))
<div class="text-neg text-small">{{ $errors->first('html') }}</div>
@endif
@include('form.editor-translations')