Plugin: table

This plugin adds table management functionality to TinyMCE.

Table controls/buttons
tablecontrolsAll table control below and some separators between them.
tableInsert table control.
row_propsEdit row properties (tr).
cell_propsEdit cell properties (td).
delete_colDelete column control.
delete_rowDelete row control.
col_afterColumn after control.
col_beforeColumn before control.
row_afterRow after control.
row_beforeRow before control.
row_afterRow after control.
row_beforeRow before control.
split_cellsSplits a merged cell into rows and columns.
merge_cellsMergers selected cells into one cell.

Table commands to use with execCommand
mceInsertTableInserts a new table at cursor location the default size is 2x2. If the value parameter is specified it should contain a name/value array, this array has the following options cols, rows, border, cellspacing, cellpadding. The default border is set to: 0.
mceTableInsertRowBeforeInserts a row before/above the current cursor location.
mceTableInsertRowAfterInserts a row after/under the current cursor location.
mceTableDeleteRowDeletes the row at the current cursor location.
mceTableInsertColBeforeInserts a column before the current cursor location.
mceTableInsertColAfterInserts a column after the current cursor location.
mceTableDeleteColDeletes the column at the current cursor location.

Options
table_color_fieldsIf set to true, tables dialogs will have color fields.

Installation Instructions

Initialization Example

tinyMCE.init({
	theme : "advanced",
	mode : "textareas",
	plugins : "table",
	theme_advanced_buttons3_add : "tablecontrols",
	table_color_fields : true
});