Fix @/% suggestion regression
See https://github.com/ueberdosis/tiptap/pull/3239
This commit is contained in:
parent
abd06f272b
commit
3a63503161
|
@ -14,6 +14,7 @@ const beginsWith = (text: string, query: string) =>
|
|||
export const contractMentionSuggestion: Suggestion = {
|
||||
char: '%',
|
||||
allowSpaces: true,
|
||||
allowedPrefixes: [' '],
|
||||
pluginKey: new PluginKey('contract-mention'),
|
||||
items: async ({ query }) =>
|
||||
orderBy(
|
||||
|
|
|
@ -14,6 +14,7 @@ const beginsWith = (text: string, query: string) =>
|
|||
|
||||
// copied from https://tiptap.dev/api/nodes/mention#usage
|
||||
export const mentionSuggestion: Suggestion = {
|
||||
allowedPrefixes: [' '],
|
||||
items: async ({ query }) =>
|
||||
orderBy(
|
||||
(await getCachedUsers()).filter((u) =>
|
||||
|
|
Loading…
Reference in New Issue
Block a user