feat(editor): make task list work

This commit is contained in:
kolaente 2023-06-20 11:40:34 +02:00
parent e760ce45e4
commit 63865028b8
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 8 additions and 3 deletions

View File

@ -47,8 +47,8 @@ import CodeBlock from './CodeBlock.vue'
// content: 'taskList',
// })
const CustomTaskItem = TaskItem.extend({
content: 'inline*',
const CustomTaskItem = TaskItem.configure({
nested: true,
})
const CustomTableCell = TableCell.extend({
@ -386,10 +386,15 @@ onBeforeUnmount(() => editor.value?.destroy())
ul[data-type="taskList"] {
list-style: none;
padding: 0;
margin-left: 0;
margin-top: 0;
p {
margin-bottom: 0 !important;
}
li {
display: flex;
align-items: center;
> label {
flex: 0 0 auto;