{{ $post->extract }}
Poner:
{!! $post->extract !!}
{{ $post->extract }}
{!! $post->extract !!}
<script src="https://cdn.ckeditor.com/ckeditor5/28.0.0/classic/ckeditor.js"></script>
<div class="mb-4" wire:ignore>
<x-jet-label value="Descripción"></x-jet-label>
<textarea
class="w-full form-control"
wire:model="description"
x-data="" x-init="ClassicEditor.create($refs.editorLSG)
.then(function(editor) {
editor.model.document.on('change:data', () => {
@this.set('description', editor.getData())
})
})
.catch( error => {
console.error( error );
});"
x-ref="editorLSG"
rows=4>
</textarea>
</div>
@section('js')
...
<script src="https://cdn.ckeditor.com/ckeditor5/25.0.0/classic/ckeditor.js">
<script>
ClassicEditor
.create( document.querySelector('#description'))
.catch( error => {
console.error( error );
} );
@section('js')