MCPcopy Create free account
hub / github.com/TryCatchLearn/Overflow / onUploadImage

Function onUploadImage

webapp/src/components/rte/MenuBar.tsx:35–41  ·  view source on GitHub ↗
(result: CloudinaryUploadWidgetResults)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

errorToastFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…