Summary
Copying a hyperlink (e.g. from a previous message) and pasting it into the edit of another message replaces all of the edited message with the markdown link pasted.
Steps to reproduce
Using Mattermost Version: 7.10.5
Steps:
- Send a message containing a URL e.g.
testing http://google.com
- Right click on the link in the message sent and choose “Copy”
- Send a plain text message e.g.
testing
- Press up to edit the last message
- Press space then paste
- Observe the whole message is replaced with the (markdown for the) link pasted e.g.
[http://google.com](http://google.com/)
- Press space (this prevents the old message from coming back)
- Press Cancel
- Press up again
- Observe the link is still there and the old message is lost i.e.
[http://google.com](http://google.com/)
Expected behavior
At step 6. I do not expect the existing message testing
to be removed. At step 10 I expect the old message to be still there since I pressed Cancel.
Observed behavior
See step 6 and step 10 above.