feat(editor): enable table
This commit is contained in:
parent
8e07d9647a
commit
faf93a6088
@ -352,21 +352,6 @@
|
|||||||
>
|
>
|
||||||
mergeOrSplit
|
mergeOrSplit
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
<!-- <BaseButton
|
|
||||||
class="editor-toolbar__button"
|
|
||||||
@click="
|
|
||||||
editor
|
|
||||||
.chain()
|
|
||||||
.focus()
|
|
||||||
.setCellAttribute('backgroundColor', '#FAF594')
|
|
||||||
.run()
|
|
||||||
"
|
|
||||||
:disabled="
|
|
||||||
!editor.can().setCellAttribute('backgroundColor', '#FAF594')
|
|
||||||
"
|
|
||||||
>
|
|
||||||
setCellAttribute
|
|
||||||
</BaseButton> -->
|
|
||||||
<BaseButton
|
<BaseButton
|
||||||
class="editor-toolbar__button"
|
class="editor-toolbar__button"
|
||||||
@click="editor.chain().focus().fixTables().run()"
|
@click="editor.chain().focus().fixTables().run()"
|
||||||
@ -374,20 +359,6 @@
|
|||||||
>
|
>
|
||||||
fixTables
|
fixTables
|
||||||
</BaseButton>
|
</BaseButton>
|
||||||
<BaseButton
|
|
||||||
class="editor-toolbar__button"
|
|
||||||
@click="editor.chain().focus().goToNextCell().run()"
|
|
||||||
:disabled="!editor.can().goToNextCell"
|
|
||||||
>
|
|
||||||
goToNextCell
|
|
||||||
</BaseButton>
|
|
||||||
<BaseButton
|
|
||||||
class="editor-toolbar__button"
|
|
||||||
@click="editor.chain().focus().goToPreviousCell().run()"
|
|
||||||
:disabled="!editor.can().goToPreviousCell"
|
|
||||||
>
|
|
||||||
goToPreviousCell
|
|
||||||
</BaseButton>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -111,15 +111,13 @@ const editor = useEditor({
|
|||||||
openOnClick: false,
|
openOnClick: false,
|
||||||
validate: (href: string) => /^https?:\/\//.test(href),
|
validate: (href: string) => /^https?:\/\//.test(href),
|
||||||
}),
|
}),
|
||||||
// Table.configure({
|
Table.configure({
|
||||||
// resizable: true,
|
resizable: true,
|
||||||
// }),
|
}),
|
||||||
// TableRow,
|
TableRow,
|
||||||
// TableHeader,
|
TableHeader,
|
||||||
// // Default TableCell
|
// Custom TableCell with backgroundColor attribute
|
||||||
// // TableCell,
|
CustomTableCell,
|
||||||
// // Custom TableCell with backgroundColor attribute
|
|
||||||
// CustomTableCell,
|
|
||||||
|
|
||||||
// // start
|
// // start
|
||||||
// Document,
|
// Document,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user