From 1d7e36307652127445ef4a2f9fa6c878a93c49a9 Mon Sep 17 00:00:00 2001 From: Sebastian Krupinski Date: Sat, 12 Sep 2026 21:40:28 -0400 Subject: [PATCH] refactor: adjust integration points Signed-off-by: Sebastian Krupinski --- src/composables/useFileEditor.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/composables/useFileEditor.ts b/src/composables/useFileEditor.ts index b713385..63838e2 100644 --- a/src/composables/useFileEditor.ts +++ b/src/composables/useFileEditor.ts @@ -1,11 +1,11 @@ /** * useFileEditor — resolves which registered editor can handle a given MIME type. * - * Other modules register editors at the `documents_file_editor` integration + * Other modules register editors at the `documents_editor` integration * point by including an entry in their `integrations.ts`: * * ```ts - * documents_file_editor: [{ + * documents_editor: [{ * id: 'my_editor', * meta: { mimeTypes: ['text/plain'] }, * component: () => import('./components/MyEditor.vue'), @@ -21,7 +21,7 @@ import { useIntegrationStore } from '@KTXC' import type { EntityObject } from '@DocumentsManager/models/entity' -const INTEGRATION_POINT = 'documents_file_editor' +const INTEGRATION_POINT = 'documents_editor' function mimeMatchesPattern(mime: string, pattern: string): boolean { if (pattern.endsWith('/*')) {