Add list indent/outdent controls on mobile (#5205)

This commit is contained in:
Tom Moor
2023-04-15 08:44:23 -04:00
committed by GitHub
parent 9c063c9f65
commit 2b38368fcd
7 changed files with 42 additions and 90 deletions

View File

@@ -193,6 +193,13 @@ export default class ListItem extends Node {
];
}
commands({ type }: { type: NodeType }) {
return {
indentList: () => sinkListItem(type),
outdentList: () => liftListItem(type),
};
}
keys({ type }: { type: NodeType }) {
return {
Enter: splitListItem(type),