HTML 5 Canvas Development Resources
I'm not sure I am going to need to paste the generated image into the editor. If I do here are some examples of that.
Choose Image to Canvas
http://jsfiddle.net/sdavignon/b0ho6sfg/
Paste Handler
http://joelb.me/blog/2011/code-snippet-accessing-clipboard-images-with-javascript/
HTML5 paste image to page
https://codepen.io/netsi1964/pen/IoJbg
Upload Canvas Image to Server
https://gist.github.com/kylejson/9716881
https://www.askingbox.com/tutorial/send-html5-canvas-as-image-to-server
https://stackoverflow.com/questions/13198131/how-to-save-an-html5-canvas-as-an-image-on-a-server