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 Document | Object | The HTML document element for the target editor. Null if the editor has not finished loading. |