| 5 | import { insertImage, insertMediaEmbed } from '../..'; |
| 6 | |
| 7 | export interface InsertMediaOptions extends InsertNodesOptions { |
| 8 | /** |
| 9 | * Default onClick is getting the image url by calling this promise before |
| 10 | * inserting the image. |
| 11 | */ |
| 12 | type?: string; |
| 13 | |
| 14 | getUrl?: () => Promise<string>; |
| 15 | } |
| 16 | |
| 17 | export const insertMedia = async <E extends SlateEditor>( |
| 18 | editor: E, |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…