mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-23 19:44:45 +08:00
9cbea1eb08
Closes #2740
14 lines
717 B
PHP
14 lines
717 B
PHP
<div component="wysiwyg-editor"
|
|
option:wysiwyg-editor:page-id="{{ $model->id ?? 0 }}"
|
|
option:wysiwyg-editor:text-direction="{{ config('app.rtl') ? 'rtl' : 'ltr' }}"
|
|
option:wysiwyg-editor:image-upload-error-text="{{ trans('errors.image_upload_error') }}"
|
|
option:wysiwyg-editor: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 |