Skip to content

Commit 1eb6a02

Browse files
committed
Reverted test editor changes
1 parent 1f47ab9 commit 1eb6a02

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

examples/01-basic/testing/App.tsx

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,13 @@
1-
import {
2-
BlockNoteSchema,
3-
defaultBlockSpecs,
4-
uploadToTmpFilesDotOrg_DEV_ONLY,
5-
} from "@blocknote/core";
1+
import { uploadToTmpFilesDotOrg_DEV_ONLY } from "@blocknote/core";
62
import "@blocknote/core/fonts/inter.css";
73
import { BlockNoteView } from "@blocknote/mantine";
84
import "@blocknote/mantine/style.css";
9-
import {
10-
ReactAudioBlock,
11-
ReactImageBlock,
12-
ReactVideoBlock,
13-
useCreateBlockNote,
14-
} from "@blocknote/react";
15-
16-
const schema = BlockNoteSchema.create({
17-
blockSpecs: {
18-
...defaultBlockSpecs,
19-
image: ReactImageBlock,
20-
video: ReactVideoBlock,
21-
audio: ReactAudioBlock,
22-
},
23-
});
5+
import { useCreateBlockNote } from "@blocknote/react";
246

257
export default function App() {
268
// Creates a new editor instance.
279
const editor = useCreateBlockNote({
2810
uploadFile: uploadToTmpFilesDotOrg_DEV_ONLY,
29-
schema,
3011
});
3112

3213
// Renders the editor instance using a React component.

0 commit comments

Comments
 (0)