Best way to work with Tailwind CSS ? #2960
Unanswered
jameswong3388
asked this question in
Questions & Help
Replies: 2 comments
-
Good morning James, did you read https://tiptap.dev/guide/styling ? You can style with global css or custom element classes easily. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Your styling guide is wrong. You can not add the classes to const editor = useEditor({
editorProps: {
attributes: {
class: 'prose prose-sm sm:prose lg:prose-lg xl:prose-2xl m-5 focus:outline-none',
},
},
// other settings
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Just started to work with TipTap recently, and was struggling to style the element within
editor
likea
,code
,p
tag ...Any idea to work with Tailwind CSS ? any answer would be appreciated with THX!
Beta Was this translation helpful? Give feedback.
All reactions