When inserting an image on a slow network connection (mine lol) there's no placeholder, and you're free to move the caret around resulting in unintended placement of the image.
Some work:
don't allow editing during an upload (maybe, depending on the next bit)
render a placeholder during upload
There are some considerations too:
if a placeholder is rendered, and the caret moves, the image itself needs to replace the placeholder rather than be placed at the current ProseMirror caret position
Error states need to be handled, so if the upload fails, the placeholder needs to be removed
When inserting an image on a slow network connection (mine lol) there's no placeholder, and you're free to move the caret around resulting in unintended placement of the image.
Some work:
There are some considerations too: