small updates and bump version
This commit is contained in:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user