I can reproduce this bug with a very simple experiment. Version: 0.32.11-beta.
Start typing. With a link in the clipboard, Ctrl-v (paste). Select paste as link.
Now, if you write before the link, the insertion order is scrambled. It is incredibly frustrating. With the cursor after the link, or if paste as text is selected, it works fine.