Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fix editor save

Smaug6739626e23a48133
diff --git a/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue b/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue
index 5c9378bf..8cb54017 100644
--- a/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue
+++ b/frontend/components/MarkdownEditor/LazyMarkdownEditor.vue
@@ -57,7 +57,7 @@ function syncScroll() {
markdownPreview.value.scrollTop = scrollPercentage * (markdownPreview.value.scrollHeight - markdownPreview.value.clientHeight);
}
function saveDocument() {
- document.value.content_markdown = textarea.value?.innerHTML;
+ document.value.content_markdown = textarea.value?.value || '';
document.value.content_html = compile(document.value.content_markdown);
emit('save', document.value);
}