Every extension
taskItem
Parses li[data-checked] · renders li.
Adding it
import { createEditor, document, paragraph, text, taskItem } from '@matrajs/core'
const editor = createEditor({
extensions: [document, paragraph, text, taskItem],
element: document.querySelector('#editor'),
})
There is no separate package · taskItem is already in @matrajs/core, and an extension you do not import is not in your bundle. document, paragraph and text are the floor every document needs.
Commands
-
editor.commands.splitTaskItem() -
editor.commands.liftTaskItem() -
editor.commands.sinkTaskItem() -
editor.commands.toggleTaskItem()
Keys
- Mod-Enter ·
toggleTaskItem - Enter ·
splitTaskItem - Tab ·
sinkTaskItem - Shift-Tab ·
liftTaskItem
Attributes
-
checked· defaults tofalse
HTML
-
Parses
li[data-checked] -
Renders
li