MCPcopy Create free account
hub / github.com/editablejs/editable / getWindow

Function getWindow

packages/editor/src/plugin/editable.ts:262–268  ·  view source on GitHub ↗

* Return the host window of the current editor.

(editor: Editor)

Source from the content-addressed store, hash-verified

260 * Return the host window of the current editor.
261 */
262 getWindow(editor: Editor): Window {
263 const window = EDITOR_TO_WINDOW.get(editor)
264 if (!window) {
265 throw new Error('Unable to find a host window element for this editor')
266 }
267 return window
268 },
269
270 /**
271 * Find a key for a Editor node.

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…