Skip to content

Commit ccd60e9

Browse files
committed
disable editing in preview page
1 parent 1f3fbb0 commit ccd60e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/editor.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ const Editor = ({
3131
return (
3232
<div>
3333
<BlockNoteView
34+
editable={editable}
3435
editor={editor}
3536
theme={resolvedTheme === "dark" ? "dark" : "light"}
3637
onChange={()=>onChange(JSON.stringify(editor.document), null, 2)}
37-
3838
/>
3939
</div>
4040
);

0 commit comments

Comments
 (0)