mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
rename tasklist command
This commit is contained in:
parent
d1c767413e
commit
489e064c76
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div v-if="editor">
|
||||
<button @click="editor.chain().focus().taskList().run()" :class="{ 'is-active': editor.isActive('task_list') }">
|
||||
<button @click="editor.chain().focus().toggleTaskList().run()" :class="{ 'is-active': editor.isActive('task_list') }">
|
||||
task list
|
||||
</button>
|
||||
|
||||
|
@ -35,7 +35,7 @@ const TaskList = Node.create({
|
||||
/**
|
||||
* Toggle a task list
|
||||
*/
|
||||
taskList: (): Command => ({ commands }) => {
|
||||
toggleTaskList: (): Command => ({ commands }) => {
|
||||
return commands.toggleList('taskList', 'taskItem')
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user