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

Function getOptions

packages/plugins/heading/src/options.ts:25–27  ·  view source on GitHub ↗
(editor: Editor)

Source from the content-addressed store, hash-verified

23const HEADING_OPTIONS = new WeakMap<Editor, HeadingOptions>()
24
25export const getOptions = (editor: Editor): HeadingOptions => {
26 return HEADING_OPTIONS.get(editor) ?? {}
27}
28
29export const setOptions = (editor: Editor, options: HeadingOptions) => {
30 HEADING_OPTIONS.set(editor, options)

Callers 3

heading-editor.tsFile · 0.90
getStyleFunction · 0.70
getTextMarkFunction · 0.70

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…