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 syntax and remove modals (useless args / imports)

Smaug6739ee066049aa49
diff --git a/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue b/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue
index 1a360b8f..b0fc0885 100644
--- a/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue
+++ b/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue
@@ -45,11 +45,6 @@ import Toolbar from './Toolbar.vue';
import compile from '~/helpers/markdown';
import type { Node } from '~/stores';
-/* Modals */
-import ImageSelectorModal from './ImageSelectorModal.vue';
-import GridOrganizationModal from './GridOrganizationModal.vue';
-import ColorPickerModal from './ColorPickerModal.vue';
-
const resourcesStore = useRessourcesStore();
const preferences = usePreferences();
@@ -68,16 +63,11 @@ const document = ref<Partial<Node>>({
});
const commands = createCommands({
- getView: () => editorView.value,
- getDoc: () => document.value,
+ getView: () => editorView.value as EditorView | null,
+ getDoc: () => document.value as Node,
setDoc: d => (document.value = d),
showPreview,
save: () => save(),
- modals: {
- ImageSelectorModal,
- GridOrganizationModal,
- ColorPickerModal,
- },
});
const uploadsHandlers = createUploadsHandlers({ resourcesStore, CDN, insertText: (t: string) => commands.exec('insertText', t) });