When attaching a file to a new issue the auto-generated link is placed under the current cursor
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
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
- Place the link at the very end of the current text, regardless of the cursor position
- 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
Edited by 🤖 GitLab Bot 🤖