Fixed issue with copy and paste not working

I've patched this for the meantime but I'm not sure persisting the paste
on the client-side is the best place for this.
Merge pull request #410 from adaptlearning/copy-and-paste-fix

Fixed issue with copy and paste not working