fix: add line wrapping to editor

This commit is contained in:
Stevan Freeborn
2023-09-11 21:29:22 -05:00
parent 48e14d41b2
commit 3c71d1f69b
3 changed files with 4 additions and 4 deletions
+3 -1
View File
@@ -1 +1,3 @@
export default function PostPage({ params }: { params: { id: string } }) {}
export default function PostPage({ params }: { params: { id: string } }) {
return <h1>{params.id}</h1>;
}
+1
View File
@@ -32,6 +32,7 @@ export default function Editor({ post }: { post?: Doc<'posts'> }) {
EditorView.updateListener.of(vu => {
setCurrentDoc(vu.state.doc.toJSON());
}),
EditorView.lineWrapping,
];
const [mode, setMode] = useState<'write' | 'preview'>('write');
-3
View File
@@ -1,3 +0,0 @@
export function getFullMonth() {
const monthMap = {};
}