small updates and bump version

This commit is contained in:
Ren Amamiya
2023-09-05 17:25:00 +07:00
parent 224439f62b
commit 69a3e85cb3
8 changed files with 32 additions and 17 deletions

View File

@@ -38,12 +38,16 @@ export function Composer() {
},
}),
],
content: '',
content: JSON.parse(localStorage.getItem('editor-content') || '{}'),
editorProps: {
attributes: {
class: 'h-full markdown break-all overflow-y-auto outline-none pr-2',
},
},
onUpdate: ({ editor }) => {
const jsonContent = JSON.stringify(editor.getJSON());
localStorage.setItem('editor-content', jsonContent);
},
});
const submit = async () => {