canvist_extension_table
TipTap's table, tableRow, tableCell, and tableHeader, with commands to add, remove, merge, and split cells, for the canvist editor.
Most apps get it through canvist_extensions, which combines every extension behind Cargo features, or canvist, the crate to install. Depend on this crate directly to compile only the extensions you register:
Usage
Register Table and keep its handle, which offers every command typed:
use Editor;
use Document;
use Paragraph;
use Table;
let mut builder = builder.extension.extension;
let table = builder.add;
let mut editor = builder.build?;
editor.run?;
editor.run?;
editor.run?;
Hosts without the typed API run the same commands by name: insertTable with rows, cols, and withHeaderRow, addRowAfter, mergeCells, and the rest. The tableCell query says where the caret sits. Pasting and copying tables as HTML and Markdown needs canvist_extension_clipboard with its table feature.