Skip to content

Commit 5ea8b06

Browse files
Fixed home page demo theme (#318)
1 parent 0b72bbc commit 5ea8b06

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.editor {
2-
background: transparent;
2+
background: transparent !important;
33
height: 500px;
44
}

packages/website/docs/.vitepress/theme/components/Examples/BlockNote/ReactBlockNote.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)