How to Clear Marks on Enter (Notion-like Behavior) without Custom Extensions? #5944
Unanswered
kenfdev
asked this question in
General Questions
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
I'm building a Notion-like editor using Tiptap and aiming to replicate a specific behavior:
Enterto 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
Enterkey 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:
Enternatively without custom extensions?Thank you in advance for your guidance!
All reactions