Skip to content

Latest commit

 

History

History
87 lines (54 loc) · 3.02 KB

File metadata and controls

87 lines (54 loc) · 3.02 KB

Enhanced Tables plugin

The advtable plugin is a premium plugin that extends the core table plugin by adding the following advanced functionality:

  • Sort options for rows and columns.

  • Row numbering column for tables.

Interactive demo

liveDemo::advtable[]

Enabling the Enhanced Tables plugin

To enable the Enhanced Tables plugin, add advtable to the list of plugins. For example:

tinymce.init({
  selector: 'textarea',  // change this value according to your HTML
  plugins: 'table advtable',
});

Sorting table rows and columns

Tables can be sorted by row or column values using:

  • The Sort options in the Table menu.

  • The Sort options in the Table contextual menu.

  • The Sort options in the Table toolbar menu button.

For example:

Sort rows based on the selected column Advanced Sort Dialog

Enhanced Tables enhanced contextual menu for sorting rows based on the selected Column (Sort > Sort table by column ascending/descending).

Enhanced Tables sort dialog (Sort > Advanced Sort{ellps}).

The plugin is capable of sorting:

  • Numerical data

  • Text data

Note
Currently, the sort function will treat cells with Alphanumeric data as Text data. This includes currency symbols which are text characters.

Adding row numbering to a table

A row numbering column containing a series of values can be added to a table to help identify rows in a table. To allow row numbering on tables, the advtablerownumbering toolbar button and menu item can be used.

A numeric and alpha value series are available by default. The available value series can be configured using the advtable_value_series option.

Table with numeric row numbering column and row numbering menu open (Numeric item checked)

A commonly desired customization of the row-numbering column is that a table’s header and footer rows not be included in the numbering.

This can be done using the advtable_value_series option to specify a custom generator.

Commands

The Enhanced Tables plugin provides the following {productname} commands.