Skip to content

Editable Strategy #898

Closed
Closed

Description

This is more of a discussion ticket, with some points on how I see Editable going forward, so we can discuss and get on the same page.

  1. Implement multi selection: Multiple block selection #62 + Add multi select #896.
  2. Once we have multi selection, we might be able to return to one paragraph per text block:
    • This could make Editable much simpler as we can remove the non inline version. There would be only one state structure.
    • Blocks like lists and quotes could be created from multi selection. We can have a toolbar for commands that are possible on multiple selected text blocks.
    • There's no need to "normalise" paragraphs and merge/split them to transform to a list/quote/etc.
    • Alignment is truly per block.
    • Line break on enter becomes easy (though we don't have to do it).
  3. Editable state as string + meta data: RichText State Structure #771 + Experimental Editable state #847.
  4. Add text shortcuts. With just a string as the Editable state, it's easier to make transformations to other blocks (code, hr, heading), or add extra meta data (like formatting).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    [Feature] Rich TextRelated to the Rich Text component that allows developers to render a contenteditable[Type] QuestionQuestions about the design or development of the editor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions