The Upload handling example uses the <input type="file"> to upload the image.
How can I add it(or an upload icon) as a menu item to upload the image?
To upload a file you’ll have to somehow get the user to click a file input element. But you can hide that and use a <label> element in your button to make it look like a regular menu item – see this article for a clearer explanation.
If I upload an image file and get the url link, is it possible to call the insert image function on the menu bar?