Use % as the prompt; allow for spaces
This commit is contained in:
parent
3bfbc6a6ec
commit
d4b2aac114
|
@ -14,6 +14,8 @@ const beginsWith = (text: string, query: string) =>
|
|||
|
||||
// copied from https://tiptap.dev/api/nodes/mention#usage
|
||||
export const mentionSuggestion: Suggestion = {
|
||||
char: '%',
|
||||
allowSpaces: true,
|
||||
items: async ({ query }) =>
|
||||
orderBy(
|
||||
(await getCachedContracts()).filter((c) =>
|
||||
|
|
Loading…
Reference in New Issue
Block a user