Skip to content

Commit 62be3e2

Browse files
committed
test: get the tests further along
1 parent 1ddef1b commit 62be3e2

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

packages/core/src/api/exporters/html/util/serializeBlocksExternalHTML.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,11 @@ function serializeBlock<
128128
);
129129

130130
const elementFragment = doc.createDocumentFragment();
131-
if (
132-
ret.dom instanceof HTMLElement &&
133-
ret.dom.classList.contains("bn-block-content")
134-
) {
131+
132+
if ((ret.dom as HTMLElement).classList.contains("bn-block-content")) {
135133
const blockContentDataAttributes = [
136134
...attrs,
137-
...Array.from(ret.dom.attributes),
135+
...Array.from((ret.dom as HTMLElement).attributes),
138136
].filter(
139137
(attr) =>
140138
attr.name.startsWith("data") &&

packages/core/src/editor/BlockNoteExtensions.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -193,15 +193,11 @@ const getTipTapExtensions = <
193193
Extension.create({
194194
name: "dropCursor",
195195
addProseMirrorPlugins: () => [
196-
// TODO need to figure out why this isn't working with the default plugin key
197-
{
198-
...opts.dropCursor({
199-
width: 5,
200-
color: "#ddeeff",
201-
editor: opts.editor,
202-
}),
203-
key: new PluginKey("dropCursor"),
204-
} as unknown as Plugin,
196+
opts.dropCursor({
197+
width: 5,
198+
color: "#ddeeff",
199+
editor: opts.editor,
200+
}),
205201
],
206202
}),
207203

0 commit comments

Comments
 (0)