mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-08-06 13:38:49 +08:00
fix task list example
This commit is contained in:
parent
12a2e6e677
commit
d7084845f4
@ -18,7 +18,7 @@ const CustomDocument = Document.extend({
|
||||
})
|
||||
|
||||
const CustomTaskItem = TaskItem.extend({
|
||||
content: 'paragraph',
|
||||
content: 'inline*',
|
||||
})
|
||||
|
||||
export default {
|
||||
|
@ -79,6 +79,7 @@ const TaskItem = Node.create({
|
||||
const content = document.createElement('div')
|
||||
|
||||
checkbox.type = 'checkbox'
|
||||
checkbox.contentEditable = 'false'
|
||||
checkbox.addEventListener('change', event => {
|
||||
const { checked } = event.target as any
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user