(result: CloudinaryUploadWidgetResults)
| 33 | if (!editor || !editorState) return null; |
| 34 | |
| 35 | const onUploadImage = (result: CloudinaryUploadWidgetResults) => { |
| 36 | if (result.info && typeof result.info === 'object') { |
| 37 | editor?.chain().focus().setImage({ src: result.info.secure_url }).run(); |
| 38 | } else { |
| 39 | errorToast({message: 'Problem adding image'}); |
| 40 | } |
| 41 | } |
| 42 | |
| 43 | const options = [ |
| 44 | { |
nothing calls this directly
no test coverage detected
searching dependent graphs…