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

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

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


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


HTML DocumentObject

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

  • No labels