Closed
Description
openedon May 24, 2017
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.
Implement multi selection: Multiple block selection #62 + Add multi select #896.- 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).
- Editable state as string + meta data: RichText State Structure #771 + Experimental Editable state #847.
- This also becomes much simple because we only need to handle the inline case.
- Enter/backspace behaviour should be easy to adjust.
- More benefits: RichText State Structure #771 (comment)
- 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