-
-
Notifications
You must be signed in to change notification settings - Fork 462
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
Empty block is unnecessarily created #631
Comments
This is because we're adding a so-called trailing node. This makes it easier for users to use their mouse and click below the document and start adding content. It's similar to what notion does. If you want to disable this, you could try creating a PR. We could add an editor option that would disable the extension here:
|
ooh yes I want this disabled as well |
@YousefED I can imagine three different levels of intervention: (1) add an option Do you have a preference? |
Alternatively, @moroshko here's the hack that I've figured out, while waiting for PRs to happen and such: const ext = editor._tiptapEditor.extensionManager.extensions.find((e) => e.name === 'trailingNode');
if (ext) {
// Disable the trailingNode extension
ext.config.addProseMirrorPlugins = () => [];
} |
``
Small caveat: I'd use |
/bounty 50 |
💎 $50 bounty • BlockNoteSteps to solve:
Thank you for contributing to TypeCellOS/BlockNote! Add a bounty • Share on socials
|
/attempt 631
|
/attempt #631
|
/attempt #631 Options |
💡 @Kashifwahaj submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
…should-be-configurable
…-traling-node-should-be-configurable
…' of https://github.com/Kashifwahaj/BlockNote into feat-TypeCellOS#631-traling-node-should-be-configurable
closed by #679 |
🎉🎈 @Kashifwahaj has been awarded $55! 🎈🎊 |
Describe the bug
Empty block is unnecessarily created. I'm wondering why is this and whether there is a way to avoid this?
To Reproduce
You'll see that a new empty block is added under the "a" (you can press the Down arrow to go there)
Misc
The text was updated successfully, but these errors were encountered: