* Return the host window of the current editor.
(editor: Editor)
| 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. |
nothing calls this directly
no test coverage detected
searching dependent graphs…