How to Clear Marks on Enter (Notion-like Behavior) without Custom Extensions? #5944
Unanswered
kenfdev
asked this question in
Questions & Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm building a Notion-like editor using Tiptap and aiming to replicate a specific behavior:
Enter
to create a new paragraph, all active styles (marks) should reset.Shift+Enter
, the styles should remain active (continuing the current line with the same formatting).I understand that this behavior can be implemented by adding a custom extension to handle
Enter
key events. However, I've noticed that editors like Novel and Notitap achieve this without adding any additional extension for this behavior. (afaik)I'm wondering if there's a more "native" or built-in way to handle this within Tiptap's existing functionality, similar to how Novel and Notitap achieve it.
My Questions:
Enter
natively without custom extensions?Thank you in advance for your guidance!
Beta Was this translation helpful? Give feedback.
All reactions