ueberdosis / tiptap

The headless rich text editor framework for web artisans.
https://tiptap.dev
MIT License
27.24k stars 2.27k forks source link

[Bug]: Tailwind Break-Words not respected in editorProds.attributes.class #5767

Open churbis opened 1 day ago

churbis commented 1 day ago

Affected Packages

react

Version(s)

2.1.5

Bug Description

Combo of tailwind break-words, whitespace-normal, overflow-y-auto passed to the editor config classdid not stop holding down one letter from breaking the EditorContent component out of its containing div. Had to style .ProseMirror class directly in global.css to get the text from breaking out of the parent container on the horizontal axis.

Browser Used

Chrome

Code Example URL

No response

Expected Behavior

I want the styling of the text wrapping Tailwind classes to be applied to the EditorContent component

Additional Context (Optional)

No response

Dependency Updates

guarmo commented 23 hours ago

Hey @churbis, would you mind providing a code sandbox for the issue? I don't seem to be able to reproduce it