Skip to content
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

Cannot add new line in custom block's content #1551

Open
ClementEXWiki opened this issue Mar 20, 2025 · 0 comments
Open

Cannot add new line in custom block's content #1551

ClementEXWiki opened this issue Mar 20, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@ClementEXWiki
Copy link

Describe the bug
If you make a custom block and you press the Enter key, it will not make a newline but instead jump out of the block.

This is a very big limitation as it makes traditional blocks basically useless. Only inline content is supported.

I saw in another issue that using a keyDown event listener was recommended - which has a lot of problems (doesn't support clipboard pasting, doesn't work reliably in every context, doesn't always work on mobile browsers, doesn't support some accessibility options, etc.)

How hard would it be to implement support for newlines in custom blocks?

Thanks!

To Reproduce
https://stackblitz.com/edit/github-df1nzmdk

Type /wrapper to insert the custom block in the editor, then try to add some newlines in it.

Misc

  • Node version: v22.14.0
  • Package manager: 10.6.0
  • Browser: Firefox 136
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant