feat(editor): enable table

This commit is contained in:
kolaente 2023-06-20 12:04:05 +02:00
parent 8e07d9647a
commit faf93a6088
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 7 additions and 38 deletions

View File

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

View File

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