Page tree
Skip to end of metadata
Go to start of metadata

RELEASE 2.11.0 OR ABOVE

Returns the cell (TD or TH) HTML Element in the table where the caret is located.


Return:

TypeDescription
HTML Element

Cells in a table (TD or TH) HTML Element.

Returns null if the caret or selection is not located inside a table cell.


Example:

var td = editor.getTableCellHTMLElement();
td.innerHTML = "A cell in the table.";
  • No labels