Skip to content

Feature: Arrow navigation and multiple blocks text selection #1

@SuperOleg39

Description

@SuperOleg39

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:

  1. Handle text selection and arrow navigation manually - possible rabbit hole of problems and workarounds
  2. Handle root contenteditable elements tree outside of React - need to rewrite existings blocks

Need to investigate and select optimal solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions