Closed arthureberledev closed 9 months ago
@arthureberledev is attempting to deploy a commit to the Elegance Team on Vercel.
A member of the Team first needs to authorize it.
0.2.0-canary.0 https://novel.sh/docs/guides/tailwind/setup#add-styles this can be fixed now at library consumer level
With the current implementation, every single instance of TipTap inside an application is affected by the styling of this library.
This is due the global
.Prosemirror
styling in theprosemirror.css
file, e.g.As an easy fix, I've introduced a custom
.novel-tiptap
css class and included it inside thedefaultEditorProps
object and replaced the.ProseMirror
classes (where applicable without side effects):I've also moved the
novel-p-12 novel-px-8 sm:novel-px-12
part to thedefaultEditorProps
object, since I've found it odd, that there were 2 places where the editor was styled with tailwindcss. This also allows to override the padding, which was not possible before.