Closed midsonlajeanty closed 9 months ago
One way I did was to render without the toolbar and through JavaScript, disable editing.
BLADE:
@trix($post, 'content', [ 'hideToolbar' => true ])
JS:
<script>
var trixEditor = document.querySelector('trix-editor');
trixEditor.setAttribute('contenteditable', false);
</script>
Thanks ...
when i use this syntax into blade view :
the trix editor is render, but i need to render only html string. How con i make it ?