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

Function getOptions

packages/plugins/toolbar/src/slash/options.ts:22–24  ·  view source on GitHub ↗
(editable: Editable)

Source from the content-addressed store, hash-verified

20export const SLASH_TOOLBAR_OPTIONS = new WeakMap<Editable, SlashToolbarOptions>()
21
22export const getOptions = (editable: Editable): SlashToolbarOptions => {
23 return SLASH_TOOLBAR_OPTIONS.get(editable) || {}
24}
25
26export const setOptions = (editable: Editable, options: SlashToolbarOptions): void => {
27 SLASH_TOOLBAR_OPTIONS.set(editable, options)

Callers 2

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