You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To mount the inspector into a specific DOM element instead of the default `document.body`, use the `options.container` option.
116
+
117
+
This is useful in multi-window / multi-document environments (Electron, WebView2, iframes) where the global document of the realm that loaded the inspector script is not the document where the editor lives. Without this option, the inspector would be appended to the wrong document's `<body>` and remain invisible.
118
+
119
+
The inspector wrapper element is created in `container.ownerDocument`, so ReactDOM event delegation works correctly in the target document.
120
+
121
+
**Note**: This option works when `CKEditorInspector.attach()` is called for the first time only.
0 commit comments