slate-edit-list
Version:
A Slate plugin to handle keyboard events in lists.
27 lines (25 loc) • 577 B
YAML
nodes:
- kind: block
type: ul_list
nodes:
- kind: block
type: list_item
key: 'previous_item'
nodes:
- kind: block
type: paragraph
nodes:
- kind: text
ranges:
- text: First item
- kind: block
type: list_item
key: 'current_item'
nodes:
- kind: block
type: paragraph
nodes:
- kind: text
key: 'cursor'
ranges:
- text: Second item