mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-04 11:49:02 +08:00
7e7057ea43
* move list keymap to extra extension * update docs and readme * move list helpers out of core
1.3 KiB
1.3 KiB
description | icon |
---|---|
Add extra keymap handlers to change the default backspace and delete behavior for lists. | asterisk |
ListKeymap
This extensions adds extra keymap handlers to change the default backspace and delete behavior for lists. Those are not included in the core package, because they are not required for the most basic use cases.
Installation
npm install @tiptap/extension-list-keymap
Settings
listTypes
A array of list items and their parent wrapper node types.
Default:
[
{
itemName: 'listItem',
wrapperNames: ['bulletList', 'orderedList'],
},
{
itemName: 'taskItem',
wrapperNames: ['taskList'],
},
]
ListKeymap.configure({
listTypes: [
{
itemName: 'taskItem',
wrapperNames: ['customTaskList'],
},
],
})
Source code
packages/extension-list-keymap/