slate-edit-list
Version:
A Slate plugin to handle keyboard events in lists.
37 lines (30 loc) • 539 B
YAML
document:
nodes:
- kind: block
type: paragraph
nodes:
- kind: text
text: 'Blah blah'
- kind: block
type: paragraph
nodes:
- kind: text
key: 'start'
text: 'First item'
- kind: block
type: paragraph
nodes:
- kind: text
key: 'end'
text: 'Second item'
- kind: block
type: paragraph
nodes:
- kind: text
text: 'Blah blah'
selection:
anchorKey: 'start'
anchorOffset: 2
focusKey: 'end'
focusOffset: 4
isFocused: true