When attaching a file to a new issue the auto-generated link is placed under the current cursor
<!--IssueSummary start--> <details> <summary> Everyone can contribute. [Help move this issue forward](https://handbook.gitlab.com/handbook/marketing/developer-relations/contributor-success/community-contributors-workflows/#contributor-links) while earning points, leveling up and collecting rewards. </summary> - [Close this issue](https://contributors.gitlab.com/manage-issue?action=close&projectId=278964&issueIid=15538) </details> <!--IssueSummary end--> ## Summary I'm not sure if this is a bug or intended behaviour. After uploading a file, the Markdown code to link to it is automatically inserted into the editor. However, if the cursor is moved during that time, that link appears wherever the cursor currently is, possibly in the middle of some text. A video in this case is worth a few dozen words: ![Untitled](/uploads/43e6653bc1c86ea176679abbc46262da/Untitled.mov) ## To reproduce * Write some text * Begin uploading a file (large enough to not be effectively instantly uploaded) * Move the cursor to half way through the text #### Expected result Markdown link to upload is appended to the current text #### Actual result Markdown link to upload interests the current text ## Proposed solutions 1. Place the link at the very end of the current text, regardless of the cursor position 2. Don't insert a link automatically, show a list of files to be attached to the issue, and let the user decide if they want any or all of them in-lined
issue