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 11.editor {
2- background : transparent;
2+ background : transparent !important ;
33 height : 500px ;
44}
Original file line number Diff line number Diff line change @@ -52,10 +52,11 @@ export function ReactBlockNote(props: { theme: "light" | "dark" }) {
5252
5353 const editor = useBlockNote (
5454 {
55- editorDOMAttributes : {
56- class : styles . editor ,
55+ domAttributes : {
56+ editor : {
57+ class : styles . editor ,
58+ } ,
5759 } ,
58- theme : props . theme ,
5960 collaboration : {
6061 provider,
6162 fragment : doc . getXmlFragment ( "blocknote" ) ,
@@ -84,5 +85,5 @@ export function ReactBlockNote(props: { theme: "light" | "dark" }) {
8485 } ;
8586 } , [ editor ?. domElement ] ) ;
8687
87- return < BlockNoteView editor = { editor } /> ;
88+ return < BlockNoteView editor = { editor } theme = { props . theme } /> ;
8889}
You can’t perform that action at this time.
0 commit comments