📚 The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Merge branch 'main' of https://github.com/louloudev59/Alexandrie into louloudev59/main
Smaug6739bdcb11491b1a
diff --cc frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vueindex 18efe139,433b0540..29e1ccb9--- a/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue+++ b/frontend/app/components/MarkdownEditor/LazyMarkdownEditor.vue@@@ -156,12 -152,27 +158,21 @@@ function openColorModal()function openImageSelector() {const modalManager = useModal();- console.log('Modals avant ouverture:', modalManager.modals.value.length);- // Fermer tous les modals existants avant d'en ouvrir un nouveau- while (modalManager.modals.value.length > 0) {- modalManager.close(modalManager.modals.value[0]);- }modalManager.add(new Modal(shallowRef(ImageSelectorModal), { onImageSelect: handleImageSelect }, () => {}, true));- console.log('Modals après ouverture:', modalManager.modals.value.length);}+ function openGridOrganization() {+ const modalManager = useModal();+ // Fermer tous les modals existants avant d'en ouvrir un nouveau+ while (modalManager.modals.value.length > 0) {+ modalManager.close(modalManager.modals.value[0]);+ }+ modalManager.add(new Modal(shallowRef(GridOrganizationModal), { onGridSelect: handleGridSelect }, () => {}, true));+ }+function handleImageSelect(imageUrl: string, altText: string) {if (!editorView.value) return;-+const view = editorView.value;const state = view.state;const { from, to } = state.selection.main;@@@ -174,9 -185,24 +185,24 @@@changes: { from, to, insert },selection: { anchor: from + insert.length, head: from + insert.length },});-+view.focus();}++ function handleGridSelect(gridMarkdown: string) {+ if (!editorView.value) return;++ const view = editorView.value;+ const state = view.state;+ const { from, to } = state.selection.main;++ view.dispatch({+ changes: { from, to, insert: gridMarkdown },+ selection: { anchor: from + gridMarkdown.length, head: from + gridMarkdown.length },+ });++ view.focus();+ }const snippets: Record<string, string> = {'!blue': ':::blue\n$0\n:::','!green': ':::green\n$0\n:::',