CSS Classes in Writer Output

Hello,

I would like to add (tailwind) classes to the writer-field output. Is there a way to customize the generated html?

Thanks.

Since the writer field only contains p tags and inline tags and this html is stored in the content, I don’t really think it would be a good idea to store Tailwind classes (or any other styling information) in the output. This would tie your styles to your content, making it basically impossible (or at least hard) to change these styles afterwards.

If you really need CSS class styling at this level, you could probably run some regex on the output to inject classes via a field method.