-
At the moment I'm using the WYSIWYG field, this content I then render using a Prose component, which basically gives the h1, h2, h3 etc their tailwind prose styles
Now I'm wondering how I can achieve this using the tiptap editor? I copied over the headings, paragraphs. Do I need to create a custom block? In the example I can see this
But I'm not sure how to combine this with my Prose class. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Thank you for your question! There are two ways:
I personally prefer option 1! |
Beta Was this translation helpful? Give feedback.
Thank you for your question!
There are two ways:
Add your Tailwind classes directly to the
FlexibleEditorContent
Vue component (https://github.com/formfcw/directus-extension-flexible-editor/tree/main/content#vue):By using a component-serializer: