Unexpected behaviour of cursor when editing an image into a post

Steps to reproduce:

Create a post of a couple of paragraphs or more.

Return to edit the post, and include an image in the middle of it.

Expected behaviour: after the image has uploaded, the cursor should be at the end of the image, ready to continue the edit.

Actual behaviour: the cursor has jumped to the end of the post.

It happens whether the image is uploaded using the editor upload button, or drag-and-drop.

2 Likes

Sure @eviltrout can you add this to your list?

1 Like

Good catch. Here’s a fix:

https://github.com/discourse/discourse/commit/3200d836f70a4233c3d7b8ed7605ba1d2720d314

5 Likes