File tree 1 file changed +2
-21
lines changed
examples/01-basic/testing
1 file changed +2
-21
lines changed Original file line number Diff line number Diff line change 1
- import {
2
- BlockNoteSchema ,
3
- defaultBlockSpecs ,
4
- uploadToTmpFilesDotOrg_DEV_ONLY ,
5
- } from "@blocknote/core" ;
1
+ import { uploadToTmpFilesDotOrg_DEV_ONLY } from "@blocknote/core" ;
6
2
import "@blocknote/core/fonts/inter.css" ;
7
3
import { BlockNoteView } from "@blocknote/mantine" ;
8
4
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" ;
24
6
25
7
export default function App ( ) {
26
8
// Creates a new editor instance.
27
9
const editor = useCreateBlockNote ( {
28
10
uploadFile : uploadToTmpFilesDotOrg_DEV_ONLY ,
29
- schema,
30
11
} ) ;
31
12
32
13
// Renders the editor instance using a React component.
You can’t perform that action at this time.
0 commit comments