fix(editor): sentry-b0cfc9953ff64c53b9994697171bb91a (#9396)

This commit is contained in:
doodlewind
2024-12-27 14:02:00 +00:00
parent 70e4c8feab
commit 5e1d936c2e

View File

@@ -7,6 +7,8 @@ export function isInsidePageEditor(host: EditorHost) {
}
export function isInsideEdgelessEditor(host: EditorHost) {
if (!host) return false;
return Array.from(host.children).some(
v =>
v.tagName.toLowerCase() === 'affine-edgeless-root' ||