We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82c463f commit f53faa1Copy full SHA for f53faa1
2 files changed
packages/core/src/editor/BlockNoteEditor.ts
@@ -474,6 +474,12 @@ export class BlockNoteEditor<
474
return ext;
475
}
476
477
+ if (!ext.plugin) {
478
+ throw new Error(
479
+ "Extension should either be a TipTap extension or a ProseMirror plugin in a plugin property"
480
+ );
481
+ }
482
+
483
// "blocknote" extensions (prosemirror plugins)
484
return Extension.create({
485
name: key,
packages/core/src/editor/BlockNoteExtensions.ts
@@ -116,7 +116,7 @@ export const getBlockNoteExtensions = <
116
ret["nodeSelectionKeyboard"] = new NodeSelectionKeyboardPlugin();
117
118
const disableExtensions: string[] = opts.disableExtensions || [];
119
- for (const ext of Object.keys(disableExtensions)) {
+ for (const ext of disableExtensions) {
120
delete ret[ext];
121
122
0 commit comments