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
+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');