MCPcopy
hub / github.com/tinymce/tinymce / getDoc

Method getDoc

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

* Returns the iframes document object. * * @method getDoc * @return {Document} Iframe DOM document object.

()

Source from the content-addressed store, hash-verified

1035 * @return {Document} Iframe DOM document object.
1036 */
1037 public getDoc(): Document {
1038 const self = this;
1039
1040 if (!self.contentDocument) {
1041 const win = self.getWin();
1042
1043 if (win) {
1044 self.contentDocument = win.document;
1045 }
1046 }
1047
1048 return self.contentDocument;
1049 }
1050
1051 /**
1052 * Returns the root element of the editable area.

Callers 15

getBodyMethod · 0.95
ForceBlocksTest.tsFile · 0.80
SelectionTest.tsFile · 0.80
assertCorsLinkPresenceFunction · 0.80
fakeBackspaceKeyOnRangeFunction · 0.80
setupEditorFunction · 0.80

Calls 1

getWinMethod · 0.80

Tested by

no test coverage detected