slate-edit-list
Version:
A Slate plugin to handle keyboard events in lists.
34 lines (32 loc) • 869 B
YAML
nodes:
- kind: block
type: ol_list
nodes:
- kind: block
type: list_item
nodes:
- kind: block
type: paragraph
key: '_selection_key'
nodes:
- kind: text
text: Item 1 # split here "It|em 1"
- kind: block
type: ol_list
nodes:
- kind: block
type: list_item
nodes:
- kind: block
type: paragraph
nodes:
- kind: text
text: Item 1.1
- kind: block
type: list_item
nodes:
- kind: block
type: paragraph
nodes:
- kind: text
text: Item 1.2