(editable: Editable)
| 20 | export const SLASH_TOOLBAR_OPTIONS = new WeakMap<Editable, SlashToolbarOptions>() |
| 21 | |
| 22 | export const getOptions = (editable: Editable): SlashToolbarOptions => { |
| 23 | return SLASH_TOOLBAR_OPTIONS.get(editable) || {} |
| 24 | } |
| 25 | |
| 26 | export const setOptions = (editable: Editable, options: SlashToolbarOptions): void => { |
| 27 | SLASH_TOOLBAR_OPTIONS.set(editable, options) |
no test coverage detected
searching dependent graphs…