Add list indent/outdent controls on mobile (#5205)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user