fix(editor): support mention user itself (#11133)

This commit is contained in:
Flrande
2025-03-24 10:42:50 +00:00
parent 3bd8c5320b
commit 7e248a1379
3 changed files with 28 additions and 7 deletions

View File

@@ -12,7 +12,7 @@ export const MentionInlineSpecExtension =
schema: z
.object({
member: z.string(),
notification: z.string(),
notification: z.string().optional(),
})
.optional()
.nullable()

View File

@@ -75,7 +75,7 @@ export interface AffineTextAttributes {
footnote?: FootNote | null;
mention?: {
member: string;
notification: string;
notification?: string;
} | null;
}