slate-edit-list
Version:
A Slate plugin to handle keyboard events in lists.
32 lines (28 loc) • 509 B
YAML
document:
nodes:
- kind: block
type: ul_list
nodes:
- kind: block
type: list_item
nodes:
- kind: block
type: paragraph
nodes:
- kind: text
text: 'First item'
- kind: block
type: list_item
nodes:
- kind: block
type: paragraph
nodes:
- kind: text
key: 'start'
text: ''
selection:
anchorKey: 'start'
anchorOffset: 0
focusKey: 'start'
focusOffset: 0
isFocused: true