Mohammad Asif cf937194cb Removed un-waned things 1. 7 kuukautta sitten
..
README.md cf937194cb Removed un-waned things 1. 7 kuukautta sitten
cellselection.ts cf937194cb Removed un-waned things 1. 7 kuukautta sitten
columnresizing.ts cf937194cb Removed un-waned things 1. 7 kuukautta sitten
commands.ts cf937194cb Removed un-waned things 1. 7 kuukautta sitten
copypaste.ts cf937194cb Removed un-waned things 1. 7 kuukautta sitten
fixtables.ts cf937194cb Removed un-waned things 1. 7 kuukautta sitten
index.ts cf937194cb Removed un-waned things 1. 7 kuukautta sitten
input.ts cf937194cb Removed un-waned things 1. 7 kuukautta sitten
schema.ts cf937194cb Removed un-waned things 1. 7 kuukautta sitten
tablemap.ts cf937194cb Removed un-waned things 1. 7 kuukautta sitten
tableview.ts cf937194cb Removed un-waned things 1. 7 kuukautta sitten
util.ts cf937194cb Removed un-waned things 1. 7 kuukautta sitten

README.md

ProseMirror table module

This module defines a schema extension to support tables with rowspan/colspan support, a custom selection class for cell selections in such a table, a plugin to manage such selections and enforce invariants on such tables, and a number of commands to work with tables.

The top-level directory contains a demo.js and index.html, which can be built with npm run build_demo to show a simple demo of how the module can be used.

Documentation

The module's main file exports everything you need to work with it. The first thing you'll probably want to do is create a table-enabled schema. That's what tableNodes is for:

@tableNodes

@tableEditing

@CellSelection

Commands

The following commands can be used to make table-editing functionality available to users.

@addColumnBefore

@addColumnAfter

@deleteColumn

@addRowBefore

@addRowAfter

@deleteRow

@mergeCells

@splitCell

@splitCellWithType

@setCellAttr

@toggleHeaderRow

@toggleHeaderColumn

@toggleHeaderCell

@toggleHeader

@goToNextCell

@deleteTable

Utilities

@fixTables

@TableMap