wrapInList 将当前选择中的节点包裹在一个列表中。
wrapInList
typeOrName: string | NodeType
应该包裹在列表中的节点类型。
attributes?: Record<string, any>
应该应用于列表的属性。这是可选的。
// 将段落包裹在无序列表中 editor.commands.wrapInList('paragraph')