You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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
The text was updated successfully, but these errors were encountered: