MCPcopy Create free account
hub / github.com/editablejs/editable / setMentionTriggerData

Function setMentionTriggerData

packages/plugins/mention/src/weak-map.ts:15–17  ·  view source on GitHub ↗
(editor: Editor, data: MentionTriggerData)

Source from the content-addressed store, hash-verified

13}
14
15export const setMentionTriggerData = (editor: Editor, data: MentionTriggerData) => {
16 MENTION_TRIGGER_DATA_WEAK_MAP.set(editor, data)
17}
18
19export const clearMentionTriggerData = (editor: Editor) => {
20 MENTION_TRIGGER_DATA_WEAK_MAP.delete(editor)

Callers 1

withMentionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…