add createTable

This commit is contained in:
Hans Pagel
2021-01-22 22:37:43 +01:00
parent d3fcbc91c3
commit d1bbc8f24d
5 changed files with 81 additions and 25 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div v-if="editor">
<button disabled>
createTable
<button @click="editor.chain().focus().createTable({ rows: 3, cols: 3, withHeaderRow: true }).run()">
createTable
</button>
<button @click="editor.chain().focus().addColumnBefore().run()">
addColumnBefore