Skip to content

RAJE tables

Gianmarco Spinaci edited this page May 31, 2017 · 1 revision

Table

The whole table behaviour is wrapped in the plugin raje_table.

In order to insert a new table in the document, a popup will appear asking width and heigth of the table. With these informations a JQuery object is created, using a set of functions stored in the object table.

table has three functions:

  1. add(width, height) : Insert the table in the editor

  2. getNextId() : Get the successive useable id e.g. table_1

  3. create(width, height, id) : Creates and return the JQuery object correctly created

Moreover are handled also delete events that can break the table structure e.g. pressing backspace while the selection starts somewhere but ends in the table. This will break the structure lefting only some empty elements.

Delete actions are handled in different ways, based on the selection.

Clone this wiki locally