(editor: Editor)
| 3 | import { getSlashTriggerData, clearSlashTriggerData } from './weak-map' |
| 4 | |
| 5 | export const closeSlashDecorate = (editor: Editor) => { |
| 6 | SlashToolbar.setOpen(editor, false) |
| 7 | const triggerData = getSlashTriggerData(editor) |
| 8 | if (triggerData) { |
| 9 | triggerData.rangeRef.unref() |
| 10 | triggerData.startRef.unref() |
| 11 | SlashToolbar.setSearchValue(editor, '') |
| 12 | } |
| 13 | clearSlashTriggerData(editor) |
| 14 | } |
no test coverage detected
searching dependent graphs…