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

Function setSlashTriggerData

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

Source from the content-addressed store, hash-verified

13}
14
15export const setSlashTriggerData = (editor: Editor, data: SlashTriggerData) => {
16 SLASH_TRIGGER_DATA_WEAK_MAP.set(editor, data)
17}
18
19export const clearSlashTriggerData = (editor: Editor) => {
20 SLASH_TRIGGER_DATA_WEAK_MAP.delete(editor)

Callers 1

withSlashToolbarFunction · 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…