fix: Hard break keyboard shortcut not working in custom blocks
closes https://github.com/TypeCellOS/BlockNote/pull/1554
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Updated (UTC) |
|---|---|---|---|
| blocknote | ✅ Ready (Inspect) | Visit Preview | Mar 27, 2025 2:25pm |
| blocknote-website | ✅ Ready (Inspect) | Visit Preview | Mar 27, 2025 2:25pm |
@nperez0111 @matthewlipski let's maybe also think through whether this should be configurable or not.
- Do we want to make it easy to make custom blocks where
shift+enterdoesn't insert a break? (do we see use cases for this)? - Do we want to make it easy to make custom blocks where just
enterinserts a break? (do we see use cases for this)?
True, yea let's discuss what we want here,
I've seen a lot of stuff lately around custom blocks & newline behaviour:
- https://github.com/TypeCellOS/BlockNote/issues/1551
I added a proposal for configuring the hard break shortcut behaviour in the most recent commit. Lmk if it seems ok!
@matthewlipski can you add docs for this + comment the BlockConfig in the code? (let's make this standard practice)
Suspect Issues
This pull request was deployed and Sentry observed the following issues:
- ‼️ TransformError: Cannot join blockGroup onto blockContainer
/examples/custom-schema/alert-blockView Issue
Did you find this useful? React with a 👍 or 👎