[PRO]: Styled text within threads are not wrapped in thread classes #6115
Labels
Category: Pro
The issue or pull request is related to the pro packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
CommentsKit
Version(s)
2.17.3
Description of the Bug
If any styles(bold, italic, color, marks, etc.) are added to text within a thread, the
.tiptap-thread--unresolved
and.tiptap-thread--selected
classes do not wrap these elements. This prevents adding CSS to nodes with styling applied when it is within a thread. This seems to be related to how these elements are being structured within the DOM.DOM output
Browser Used
Chrome
Code Example (Preferred)
No response
Expected Behavior
I would expect these elements to remain within the
<span class="tiptap-thread tiptap-thread--inline tiptap-thread--unresolved"
even with any sort of styling applied to the text nodeAdditional Context (Optional)
I was able to reproduce this issue within this demo https://next-comments-template.vercel.app/comments/tgzcLtJp6n as well as within our app locally
Dependency Updates
The text was updated successfully, but these errors were encountered: