MCPcopy
hub / github.com/GrapesJS/grapesjs / getDocument

Method getDocument

packages/core/src/canvas/index.ts:139–142  ·  view source on GitHub ↗

* Get the main frame document element * @returns {HTMLDocument}

()

Source from the content-addressed store, hash-verified

137 * @returns {HTMLDocument}
138 */
139 getDocument() {
140 const frame = this.getFrameEl();
141 return frame?.contentDocument;
142 }
143
144 /**
145 * Get the main frame body element

Callers 5

getBodyMethod · 0.95
hasFocusMethod · 0.95
isInputFocusedMethod · 0.95
index.tsFile · 0.80

Calls 1

getFrameElMethod · 0.95

Tested by

no test coverage detected