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
First of all, I want to thank you for your work. I've spent hours searching for an editor based on blocks and your library is perfect.
Then, while developing my own custom blocks, I noticed an issue with the default Text one. What happens is that, if the block is multi-line (if you used Shift + Enter to have a new lines), then when you hit the backspace key with the caret at the start of any line (except the first one), the block is merged into the previous one, whereas the line should be merged into the previous one.
Additionally, when the block is merged with the previous one, only the content of the first line is kept: the rest is deleted.
Here's a GIF of the issue:
I've dug into your code and identified the faulty lines. Here is a PR with a fix: #520
Clément
The text was updated successfully, but these errors were encountered:
raffij
changed the title
Wrong behaviour when hitting backspace in a single multi-line Text block
Wrong behaviour when hitting backspace in a single multi-line Text block - Safari 10
Oct 18, 2016
Good evening!
First of all, I want to thank you for your work. I've spent hours searching for an editor based on blocks and your library is perfect.
Then, while developing my own custom blocks, I noticed an issue with the default
Text
one. What happens is that, if the block is multi-line (if you used Shift + Enter to have a new lines), then when you hit the backspace key with the caret at the start of any line (except the first one), the block is merged into the previous one, whereas the line should be merged into the previous one.Additionally, when the block is merged with the previous one, only the content of the first line is kept: the rest is deleted.
Here's a GIF of the issue:

I've dug into your code and identified the faulty lines. Here is a PR with a fix: #520
Clément
The text was updated successfully, but these errors were encountered: