When using the CuteEditor as an image selector, how do I get it to replace the image already in there. The javascript in the example creates a new document when you click a button to open the image browser so if the user cancels image browsing the document is empty.
Thanks