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
For now, every block is separate tag with contenteditable attribute.
Unfortunately, you can select text only in one focused contenteditable element, and native keyboard navigation not working between blocks.
One possible solution - add contenteditable attribute to editor root element. All of mentioned features will work natively.
There is a big disadvantage - some event handlers to nested contenteditable blocks will not works, example of this problem - https://stackoverflow.com/a/24930829
So, there is a few ways to solve this problem:
Handle text selection and arrow navigation manually - possible rabbit hole of problems and workarounds
Handle root contenteditable elements tree outside of React - need to rewrite existings blocks
Need to investigate and select optimal solution.
The text was updated successfully, but these errors were encountered:
For now, every block is separate tag with
contenteditable
attribute.Unfortunately, you can select text only in one focused
contenteditable
element, and native keyboard navigation not working between blocks.One possible solution - add
contenteditable
attribute to editor root element. All of mentioned features will work natively.There is a big disadvantage - some event handlers to nested
contenteditable
blocks will not works, example of this problem - https://stackoverflow.com/a/24930829So, there is a few ways to solve this problem:
contenteditable
elements tree outside of React - need to rewrite existings blocksNeed to investigate and select optimal solution.
The text was updated successfully, but these errors were encountered: