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.";