feat(editor): make task list work
This commit is contained in:
parent
e760ce45e4
commit
63865028b8
@ -47,8 +47,8 @@ import CodeBlock from './CodeBlock.vue'
|
|||||||
// content: 'taskList',
|
// content: 'taskList',
|
||||||
// })
|
// })
|
||||||
|
|
||||||
const CustomTaskItem = TaskItem.extend({
|
const CustomTaskItem = TaskItem.configure({
|
||||||
content: 'inline*',
|
nested: true,
|
||||||
})
|
})
|
||||||
|
|
||||||
const CustomTableCell = TableCell.extend({
|
const CustomTableCell = TableCell.extend({
|
||||||
@ -386,10 +386,15 @@ onBeforeUnmount(() => editor.value?.destroy())
|
|||||||
ul[data-type="taskList"] {
|
ul[data-type="taskList"] {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
margin-left: 0;
|
||||||
|
margin-top: 0;
|
||||||
|
|
||||||
|
p {
|
||||||
|
margin-bottom: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
|
||||||
|
|
||||||
> label {
|
> label {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user