Instead of doing this in two places: after interpreting shortcuts, and after injecting characters.
Attach a file by drag & drop or click to upload