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

Function getOptions

packages/plugins/leading/src/options.ts:11–13  ·  view source on GitHub ↗
(editor: Editor)

Source from the content-addressed store, hash-verified

9const LEADING_OPTIONS = new WeakMap<Editor, LeadingOptions>()
10
11export const getOptions = (editor: Editor): LeadingOptions => {
12 return LEADING_OPTIONS.get(editor) ?? {}
13}
14
15export const setOptions = (editor: Editor, options: LeadingOptions) => {
16 LEADING_OPTIONS.set(editor, options)

Callers 1

leading-editor.tsFile · 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…