[Bug]: Active marks stop applying to new text after cursor moves from an empty line to another empty line #5849
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
react
Version(s)
2.9.1
Bug Description
When using any extension involving marks such as bold, textstyle (font family), etc., if you hit enter, go to another line, and then move the cursor back to the empty line, the active style doesn't apply to the new text when you start typing. This does not happen if you start typing just after hitting enter, only if you move away from the empty line and then back to it. This is observable in the fontFamily example from TipTap's own documentation.
bug.mov
Browser Used
Chrome
Code Example URL
No response
Expected Behavior
The active style should apply to any new text even if the line starts empty.
Extra Information
Adding this to the editor will cause the font family to be applied on blank lines, but one would have to check for and manually apply all styles here for any mark, so it's not an ideal solution.
Dependency Updates
The text was updated successfully, but these errors were encountered: