BlockNote icon indicating copy to clipboard operation
BlockNote copied to clipboard

fix: Hard break keyboard shortcut not working in custom blocks

Open matthewlipski opened this issue 11 months ago • 3 comments

closes https://github.com/TypeCellOS/BlockNote/pull/1554

matthewlipski avatar Mar 21 '25 16:03 matthewlipski

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

vercel[bot] avatar Mar 21 '25 16:03 vercel[bot]

@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+enter doesn't insert a break? (do we see use cases for this)?
  • Do we want to make it easy to make custom blocks where just enter inserts a break? (do we see use cases for this)?

YousefED avatar Mar 24 '25 08:03 YousefED

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

nperez0111 avatar Mar 24 '25 08:03 nperez0111

I added a proposal for configuring the hard break shortcut behaviour in the most recent commit. Lmk if it seems ok!

matthewlipski avatar Mar 26 '25 16:03 matthewlipski

@matthewlipski can you add docs for this + comment the BlockConfig in the code? (let's make this standard practice)

YousefED avatar Mar 27 '25 18:03 YousefED

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ TransformError: Cannot join blockGroup onto blockContainer /examples/custom-schema/alert-block View Issue

Did you find this useful? React with a 👍 or 👎

sentry[bot] avatar Mar 28 '25 07:03 sentry[bot]