Textbox.io 2.x Documentation : editor.content.documentElement()

Access an instance's HTML document object by using editor.content.documentElement().

To obtain the body element, simply use the document.body property.

Example

editor.content.documentElement()
// Retrieve an editor's document, then identify the body element
var edDocument = editor.content.documentElement();
var edBody = edDocument.body;

Returns

HTML DocumentObject

The HTML document element for the target editor. Null if the editor has not finished loading.