I'm using img_assist, wysiwyg, and tinymce and am using the camera icon plugin into my normal tinymce toolbar. Everything works great, in every browser, until I try to Edit an inline image's attributes, such as title, alignment, etc, in Internet Explorer (both 7 and 8).

Instead of changing the image's alignment, the entire image is just deleted when i Submit the popup window.

TinyMCE: 3.2.7
WYSIWYG: 6.x-2.0

Comments

jamsilver’s picture

I am also experiencing this bug. It only seems to be an issue on ie8 on XP (tested on ie6 XP, ie7 XP, FF 3.5 XP & Ubuntu).

Having added an image with the img_assist popup and clicking on that image and activating the popup once more to edit some properties, if you submit the popup the image is completely deleted rather than being updated.

The simplest way to replicate the issue:
1) Insert some image using img_assist in an editor (using the camera icon plugin)
2) Open firebug and execute the following javascript: tinyMCE.activeEditor.execCommand('mceInsertContent', false, 'some new content');
- This is the function that the img_assist popup calls on the parent window when the update button is clicked.

Hard to see whether it's an issue with the way img_assist inserts the original image into the textarea or whether it's an issue with tinyMCE and the way it overwrites images on the 'mceInsertContent' command.

Any ideas?

jamsilver’s picture

OK, just realised the firebug line wont help too much since the problem is with ie.
A better way of firing that javascript would be to place a link on the page that executes it.

jamsilver’s picture

Updating the tinymce javascript to the latest version (3.2.7) did not fix the problem.

t.lan’s picture

subscribe - same here

othermachines’s picture

Possible solution below...

I was having a similar problem. In my case, if I click the image in the editor, then the camera icon, then the "Update" button, the image is inserted at the top of the DOM tree instead of within the editor's iframe. e.g.

<html>
<body>
<img name="mceItemDrupalImage" width="640" height="636" title="nid%3D455%7Ctitle%3D%7Cdesc%3D%7Clink%3Dnone" align="left" class="mceItemDrupalImage" alt="nid%3D455%7Ctitle%3D%7Cdesc%3D%7Clink%3Dnone" src="/index.php?q=image/view/455" complete="complete" mce_src="/index.php?q=image/view/455"/>
...

In other words, it would pop out of the editor window and position itself at the top of the page. This was only in IE8 (also in compatibility mode) on Vista.

I was using img_assist 6.x-2.0-alpha4 and wysiwyg 6.x-2.3. Upgrading my tinymce library from 3.2.6 to 3.3.9.4 seems to have solved the problem. I tried 3.4.3 (latest version) and was getting even wackier results-- it would insert two images instead of one, and the pop-up wouldn't close after insert.