laravel-trix
laravel-trix copied to clipboard
Add CSS class to Trix container? For TailwindCSS
Hello,
I try to pass Tailwind CSS classes to the surrounding span (or div). Example: "col-span-6 sm:col-span-4"
I have to accomplish the following output.
<div class="col-span-6 sm:col-span-4" id="container-invoice-summary_markup-3" v-pre="">
Is this possible?
I saw that I can configure the @trix(), but unfortunately I can only change the containerElement. (span/div)
I found a way to pass the CSS classes, but I'm not sure, if this is the intended way. :)
@trix(\App\Post::class, 'content', ['containerElement' => 'div class="col-span-6 sm:col-span-4"']])
Maybe you can add the info to the documentation.