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 tab in form, go to next field

Smaug6739e79da0c1d2e3
diff --git a/frontend/components/MarkdownEditor/Editor.ts b/frontend/components/MarkdownEditor/Editor.ts
index 3b36e832..3c116e34 100644
--- a/frontend/components/MarkdownEditor/Editor.ts
+++ b/frontend/components/MarkdownEditor/Editor.ts
@@ -73,6 +73,7 @@ export class Editor extends EventTarget {
if (!event.ctrlKey && !event.altKey && !event.metaKey) this.inlineToolbar.value!.element.style.display = 'none';
if (event.key === 'Tab') {
+ if (event.target !== this.area.value) return;
event.preventDefault();
this.util.addContent(' ');
}