TinyMCE insert image not working
===

There are a few similar questions on SO, but none explain the problem I am having.

I am using [TomatoCMS][1] hosted on 1and1.

The problem I am having is with:

    tinyMCE.getInstanceById('content').execCommand('mceInsertContent', false, '<img src="' + url + '" alt="" />');

Where `url` could be `http://example.com/uploads/123.jpg`

The image *is* correctly inserted into the tinymce preview area, however the content of the original `textarea` is set to:

    <img src="%5C" alt="\"\"" />

This therefore what is saved to the database.

Does anyone have a solution for this?

  [1]: http://www.tomatocms.com/