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

Function getOptions

packages/plugins/image/src/options.ts:21–23  ·  view source on GitHub ↗
(editor: Editor)

Source from the content-addressed store, hash-verified

19const IMAGE_OPTIONS = new WeakMap<Editor, ImageOptions>()
20
21export const getOptions = (editor: Editor): ImageOptions => {
22 return IMAGE_OPTIONS.get(editor) ?? {}
23}
24
25export const setOptions = (editor: Editor, options: ImageOptions) => {
26 IMAGE_OPTIONS.set(editor, options)

Callers 3

uploadImageFunction · 0.90
image.tsxFile · 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…