Function: useImageDialog()
ts
function useImageDialog(editor, options?): UseImageDialogResult;Add an image by address or edit the selected image's alt text, in an accessible modal dialog (focus trap, Escape, alt required unless marked decorative). Needs advancedSchema() in the editor. Options are read once.
Parameters
| Parameter | Type |
|---|---|
editor | Editor |
options? | ImageDialogOptions |