# Cursor positioning inconsistency when inserting images

**URL:** https://meta.discourse.org/t/cursor-positioning-inconsistency-when-inserting-images/29716
**Category:** Feature
**Created:** [2015年六月6日 07:29 UTC](https://meta.discourse.org/t/cursor-positioning-inconsistency-when-inserting-images/29716 "2015-06-06T07:29:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![meglio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/meglio/32/71444_2.png) [@meglio](https://meta.discourse.org/u/meglio)
#### Post date: [2015年六月6日 07:29 UTC](https://meta.discourse.org/t/cursor-positioning-inconsistency-when-inserting-images/29716/1 "2015-06-06T07:29:06Z")

</div>

Here is how to reproduce the issue:

1. Start typing a new topic.
2. At some point press Ctrl+V to insert a large image from clipboard.
3. While the progress bar showing per cent uploaded is counting, move to the topic name and start typing a topic name
4. While you’re typing the topic name, the image finished uploading and the cursor unexpectedly gets moved next to the inserted `<img>` tag. If typing fast, you’ll almost always end with a few symbols from the topic name typed after the `<img>` tag before you notice it and stop typing.
5. And anyway, it’s distracting - why should the cursor move at all without my intention to do so.

A variation of this issue would be to place the cursor somewhere in the text and start typing (right after pressing Ctrl+V). When the image download is finished, the `<img>` tag will be inserted right in place where your cursor is currently located, not where it was when Ctrl+V was pressed.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2015年六月6日 07:40 UTC](https://meta.discourse.org/t/cursor-positioning-inconsistency-when-inserting-images/29716/2 "2015-06-06T07:40:47Z")

</div>

Yeah its a bit annoying can not be 100% fixed but can be way improved …

Can not be fixed:

1. Type: “hello world”
2. Upload image
3. Delete “world”, type "america, before upload is done
4. No sane spot to put image.

I guess best we can do is track cursor position when people start uploading image, then paste it there (in the first empty space after that original position.)

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [2025年十二月4日 11:35 UTC](https://meta.discourse.org/t/cursor-positioning-inconsistency-when-inserting-images/29716/3 "2025-12-04T11:35:59Z")

</div>


