I am trying to add an image chooser. I couldn’t work out how to add a button to the menubar, so I launch the image chooser with a button outside of ProseMirror. The problem with this (apart from UX) is that the cursor position is lost so images are always inserted at the start of the editor content.
Is it possible to populate the ‘Image Url’ field of the Insert Image dialog instead of inserting the image directly? (using execCommand(‘image:insert’, [url, “”, “”]) at the moment).