laravel-trix icon indicating copy to clipboard operation
laravel-trix copied to clipboard

Add CSS class to Trix container? For TailwindCSS

Open camya opened this issue 4 years ago • 1 comments

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)

camya avatar Jan 20 '21 18:01 camya

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.

camya avatar Jan 20 '21 18:01 camya