MCPcopy Index your code
hub / github.com/tinymce/tinymce / getWin

Method getWin

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

* Returns the iframes window object. * * @method getWin * @return {Window} Iframe DOM window object.

()

Source from the content-addressed store, hash-verified

1015 * @return {Window} Iframe DOM window object.
1016 */
1017 public getWin(): Window {
1018 const self = this;
1019
1020 if (!self.contentWindow) {
1021 const elm = self.iframeElement;
1022
1023 if (elm) {
1024 self.contentWindow = elm.contentWindow as Window;
1025 }
1026 }
1027
1028 return self.contentWindow;
1029 }
1030
1031 /**
1032 * Returns the iframes document object.

Callers 15

UndoManagerTest.tsFile · 0.80
testContentMxssOnRestoreFunction · 0.80
scrollResetFunction · 0.80
InsertBrTest.tsFile · 0.80
testGetContentRawMxssFunction · 0.80
testResetContentMxssFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected