fix task list example

This commit is contained in:
Philipp Kühn 2020-11-25 11:24:10 +01:00
parent 12a2e6e677
commit d7084845f4
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ const CustomDocument = Document.extend({
})
const CustomTaskItem = TaskItem.extend({
content: 'paragraph',
content: 'inline*',
})
export default {

View File

@ -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