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

Function getOptions

packages/plugins/alignment/src/options.ts:12–14  ·  view source on GitHub ↗
(editor: Editor)

Source from the content-addressed store, hash-verified

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

Callers 1

align-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…