react-markdown-editor
react-markdown-editor copied to clipboard
Allow uploading image
Hi I am using this great library and may I ask if we can have an image command that allows uploading image from local? Suppose we have a server that can we can upload the image to. The button can then receive a callback that return an image_url to be used in the editor like .
+1
+1
I think you can use events to achieve what you want. https://codesandbox.io/s/react-markdown-editor-forked-ltt49r?file=/src/App.js
<MarkdownEditor
value="# title"
onDragover={() => {
console.log(">>>>3onDragover>>>");
}}
onDragenter={() => {
console.log(">>>>3onDragenter>>>");
}}
onChange={(editor, data, value) => {
}}
/>
+1
+1