2020-07-05 22:18:17 +02:00
|
|
|
<div component="wysiwyg-editor"
|
|
|
|
option:wysiwyg-editor:page-id="{{ $model->id ?? 0 }}"
|
|
|
|
option:wysiwyg-editor:text-direction="{{ config('app.rtl') ? 'rtl' : 'ltr' }}"
|
|
|
|
class="flex-fill flex">
|
2019-07-06 15:52:25 +02:00
|
|
|
|
|
|
|
@exposeTranslations([
|
|
|
|
'errors.image_upload_error',
|
|
|
|
])
|
|
|
|
|
2020-07-26 15:49:05 +02:00
|
|
|
<textarea id="html-editor" name="html" rows="5"
|
2019-09-06 23:14:39 +02: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 15:52:25 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
@if($errors->has('html'))
|
|
|
|
<div class="text-neg text-small">{{ $errors->first('html') }}</div>
|
|
|
|
@endif
|