Home

# Class goog.editor.plugins.TableEditor

Plugin that adds support for table creation and editing commands.

extends goog.editor.Plugin

Instance Method Summary
| `addIsTableEditableFunction(function ((Element|null)): boolean func)` Adds a function to filter out non-user-editable tables.
| `enable(?goog.editor.Field fieldObject)` Enables this plugin for the specified, registered field object. A field object should only be enabled when it is loaded.
| `getAncestorTable_(?Node node) ⇒ ?Element` Finds the first user-editable table element in the input node's ancestors.
| `getCurrentTable_() ⇒ ?Element` Returns the currently selected table.
| `isSupportedCommand(string command) ⇒ boolean` Whether the string corresponds to a command this plugin handles.
| `isUserEditableTable_(?Node element) ⇒ boolean` Checks whether the element is a table editable by the user.

Static Method Summary
| `CellSelection_(?goog.dom.AbstractRange range, function ((Element|null)): (Element|null) getParentTableFunction)` Class representing the selected cell objects within a single table.