2020-07-05 16:18:17 -04:00
|
|
|
<div component="wysiwyg-editor"
|
|
|
|
option:wysiwyg-editor:page-id="{{ $model->id ?? 0 }}"
|
|
|
|
option:wysiwyg-editor:text-direction="{{ config('app.rtl') ? 'rtl' : 'ltr' }}"
|
2020-11-21 12:52:49 -05:00
|
|
|
option:wysiwyg-editor:image-upload-error-text="{{ trans('errors.image_upload_error') }}"
|
2021-05-26 13:23:27 -04:00
|
|
|
option:wysiwyg-editor:server-upload-limit-text="{{ trans('errors.server_upload_limit') }}"
|
2020-07-05 16:18:17 -04:00
|
|
|
class="flex-fill flex">
|
2019-07-06 09:52:25 -04:00
|
|
|
|
2020-07-26 09:49:05 -04:00
|
|
|
<textarea id="html-editor" name="html" rows="5"
|
2019-09-06 17:14:39 -04:00
|
|
|
@if($errors->has('html')) class="text-neg" @endif>@if(isset($model) || old('html')){{ old('html') ? old('html') : $model->html }}@endif</textarea>
|
2019-07-06 09:52:25 -04:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@if($errors->has('html'))
|
|
|
|
<div class="text-neg text-small">{{ $errors->first('html') }}</div>
|
|
|
|
@endif
|