(editor: Editor)
| 19 | const IMAGE_OPTIONS = new WeakMap<Editor, ImageOptions>() |
| 20 | |
| 21 | export const getOptions = (editor: Editor): ImageOptions => { |
| 22 | return IMAGE_OPTIONS.get(editor) ?? {} |
| 23 | } |
| 24 | |
| 25 | export const setOptions = (editor: Editor, options: ImageOptions) => { |
| 26 | IMAGE_OPTIONS.set(editor, options) |
no test coverage detected
searching dependent graphs…