File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
packages/website/docs/.vitepress/theme/components/Examples/BlockNote Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
.editor {
2
- background : transparent;
2
+ background : transparent !important ;
3
3
height : 500px ;
4
4
}
Original file line number Diff line number Diff line change @@ -52,10 +52,11 @@ export function ReactBlockNote(props: { theme: "light" | "dark" }) {
52
52
53
53
const editor = useBlockNote (
54
54
{
55
- editorDOMAttributes : {
56
- class : styles . editor ,
55
+ domAttributes : {
56
+ editor : {
57
+ class : styles . editor ,
58
+ } ,
57
59
} ,
58
- theme : props . theme ,
59
60
collaboration : {
60
61
provider,
61
62
fragment : doc . getXmlFragment ( "blocknote" ) ,
@@ -84,5 +85,5 @@ export function ReactBlockNote(props: { theme: "light" | "dark" }) {
84
85
} ;
85
86
} , [ editor ?. domElement ] ) ;
86
87
87
- return < BlockNoteView editor = { editor } /> ;
88
+ return < BlockNoteView editor = { editor } theme = { props . theme } /> ;
88
89
}
You can’t perform that action at this time.
0 commit comments