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

Function getOptions

packages/plugins/title/src/options.ts:16–18  ·  view source on GitHub ↗
(editor: Editor)

Source from the content-addressed store, hash-verified

14const TITLE_OPTIONS = new WeakMap<Editor, TitleOptions>()
15
16export const getOptions = (editor: Editor): TitleOptions => {
17 return TITLE_OPTIONS.get(editor) ?? {}
18}
19
20export const setOptions = (editor: Editor, options: TitleOptions) => {
21 TITLE_OPTIONS.set(editor, options)

Callers

nothing calls this directly

Calls 1

getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…