Skip to main content
Version: 1.0.0

Table Plugin

TablePlugin adds table insertion plus contextual structural operations.

Install and import

import { TablePlugin } from "@editora/plugins";
// or: import { TablePlugin } from "@editora/plugins/table";

Usage

const plugins = [TablePlugin()];

Command Matrix

ActionCommandShortcutToolbar
Insert tableinsertTableNoneInsert Table
Add row belowInternal table actionMod-Shift-rTable toolbar
Add column rightInternal table actionMod-Shift-cTable toolbar
Add row aboveInternal table actionNoneTable toolbar
Add column leftInternal table actionNoneTable toolbar
Merge cellsInternal table actionNoneTable toolbar
Delete row/column/tableInternal table actionNoneTable toolbar

Config Options

This plugin does not expose plugin-level config options.

Behavior

  • Shows contextual .table-toolbar near active table selection
  • Supports row/column insert/delete and merge operations
  • Adds/removes event listeners and resize handles during lifecycle

Validation checklist

  • Insert table works in empty and populated content
  • Structural operations preserve selection and undo safety
  • Table toolbar visibility tracks active table context correctly
  • Dark theme table borders and toolbar remain visible