Every extension
table
Parses table · renders table.
Adding it
import { createEditor, document, paragraph, text, table } from '@matrajs/core'
const editor = createEditor({
extensions: [document, paragraph, text, table],
element: document.querySelector('#editor'),
})
There is no separate package · table is already in @matrajs/core, and an extension you do not import is not in your bundle. document, paragraph and text are the floor every document needs.
Commands
-
editor.commands.insertTable() -
editor.commands.deleteTable() -
editor.commands.addRowAfter() -
editor.commands.addRowBefore() -
editor.commands.deleteRow() -
editor.commands.addColumnAfter() -
editor.commands.addColumnBefore() -
editor.commands.deleteColumn() -
editor.commands.toggleHeaderRow() -
editor.commands.goToNextCell() -
editor.commands.goToPreviousCell()
Keys
- Tab ·
goToNextCell - Shift-Tab ·
goToPreviousCell
HTML
-
Parses
table -
Renders
table