Don’t change the selection to the end of the content after adding media, instead leave the cursor where it left off. Fixes #493.