Skip to content

Latest commit

 

History

History
86 lines (54 loc) · 2.82 KB

File metadata and controls

86 lines (54 loc) · 2.82 KB

Advanced Tables plugin

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

Enabling the Advanced Tables plugin

To enable the Advanced 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',
  menubar: 'table'
});

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

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

Advanced 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)

Configuration options

Commands

The Advanced Tables plugin provides the following JavaScript commands.

Events

For events applicable to the Advanced Tables plugin, see: Table plugin - Events.