You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @matthiasvanwoensel, I had the same problem for this, and i used this way to solve the problem. hopefully this information helps you.
You can use 'id' on $config: @trix(\App\Post::class, 'body', ['id' => 'trix-body'])
and then you can add a default value to the editor using javascript: <script> const trixBody = document.querySelector('#trix-body'); trixBody.value = "This is a default value"; </script>
I can't find a way to add a default value to the editor, is there any way?
The text was updated successfully, but these errors were encountered: