-
-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Hard break keyboard shortcut not working in custom blocks #1554
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks nice - if possible; can we do this without the commands
interface of Tiptap? (would rather use more vanilla PM code.
Also, why do we need the priority exactly?
@@ -179,7 +179,7 @@ const getTipTapExtensions = < | |||
types: ["blockContainer", "columnList", "column"], | |||
setIdAttribute: opts.setIdAttribute, | |||
}), | |||
HardBreak.extend({ priority: 10 }), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Priority makes sense, since it needs to be higher priority
packages/core/src/extensions/KeyboardShortcuts/KeyboardShortcutsExtension.ts
Outdated
Show resolved
Hide resolved
@nperez0111 @matthewlipski let's maybe also think through whether this should be configurable or not.
|
True, yea let's discuss what we want here, I've seen a lot of stuff lately around custom blocks & newline behaviour: |
closes #1554