MCPcopy
hub / github.com/tinymce/tinymce / getBody

Method getBody

modules/tinymce/src/core/main/ts/api/Editor.ts:1058–1061  ·  view source on GitHub ↗

* Returns the root element of the editable area. * For a non-inline iframe-based editor, returns the iframe's body element. * * @method getBody * @return {Element} The root element of the editable area.

()

Source from the content-addressed store, hash-verified

1056 * @return {Element} The root element of the editable area.
1057 */
1058 public getBody(): HTMLElement {
1059 const doc = this.getDoc();
1060 return this.bodyElement ?? doc?.body ?? null;
1061 }
1062
1063 /**
1064 * URL converter function this gets executed each time a user adds an img, a or

Callers 15

getPercentSizeFunction · 0.80
ForceBlocksTest.tsFile · 0.80
getEditorRectFunction · 0.80

Calls 1

getDocMethod · 0.95

Tested by

no test coverage detected