fix: add line wrapping to editor
This commit is contained in:
@@ -1 +1,3 @@
|
||||
export default function PostPage({ params }: { params: { id: string } }) {}
|
||||
export default function PostPage({ params }: { params: { id: string } }) {
|
||||
return <h1>{params.id}</h1>;
|
||||
}
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
export function getFullMonth() {
|
||||
const monthMap = {};
|
||||
}
|
||||
Reference in New Issue
Block a user