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

Function getOptions

packages/plugins/mention/src/options.ts:19–21  ·  view source on GitHub ↗
(editor: Editor)

Source from the content-addressed store, hash-verified

17const MENTION_OPTIONS = new WeakMap<Editor, MentionOptions>()
18
19export const getOptions = (editor: Editor): MentionOptions => {
20 return MENTION_OPTIONS.get(editor) ?? {}
21}
22
23export const setOptions = (editor: Editor, options: MentionOptions) => {
24 MENTION_OPTIONS.set(editor, options)

Callers 3

getTriggerCharFunction · 0.90
MentionSearchFunction · 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…