We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
domElement
isFocused
1 parent fbf3285 commit 28cddaaCopy full SHA for 28cddaa
packages/core/src/editor/BlockNoteEditor.ts
@@ -1082,10 +1082,16 @@ export class BlockNoteEditor<
1082
}
1083
1084
public get domElement() {
1085
+ if (this.headless) {
1086
+ return undefined;
1087
+ }
1088
return this.prosemirrorView?.dom as HTMLDivElement | undefined;
1089
1090
1091
public isFocused() {
1092
1093
+ return false;
1094
1095
return this.prosemirrorView?.hasFocus() || false;
1096
1097
@@ -1673,7 +1679,7 @@ export class BlockNoteEditor<
1673
1679
ignoreQueryLength?: boolean;
1674
1680
},
1675
1681
) {
1676
- if (!this.prosemirrorView) {
1682
+ if (!this.prosemirrorView || this.headless) {
1677
1683
return;
1678
1684
1685
0 commit comments