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

Function getMentionTriggerData

packages/plugins/mention/src/weak-map.ts:11–13  ·  view source on GitHub ↗
(editor: Editor)

Source from the content-addressed store, hash-verified

9const MENTION_TRIGGER_DATA_WEAK_MAP = new WeakMap<Editor, MentionTriggerData>()
10
11export const getMentionTriggerData = (editor: Editor): MentionTriggerData | undefined => {
12 return MENTION_TRIGGER_DATA_WEAK_MAP.get(editor)
13}
14
15export const setMentionTriggerData = (editor: Editor, data: MentionTriggerData) => {
16 MENTION_TRIGGER_DATA_WEAK_MAP.set(editor, data)

Callers 3

closeMentionDecorateFunction · 0.90
withMentionFunction · 0.90
MentionDecorateFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…