When inserting an image in my WYSIWYG editor (TinyMCE), the image will appear to be inserted but when reviewing the HTML source (before form save) it appears that only <p>nospace</p> tags have been created and not the entire <img> tag.

This behaviour happens 50% of the time (not yet clear why). After trial and error an image can be successfully inserted in the editor with corresponding source code. Below is an example source whereby the first image was successfully inserted but not the second:

<p><img src="http://www.example.com/sites/default/files/imagecache/Landscape/images/news/image.jpg" alt="" title="" class="imagecache-Landscape" /></p>
<p>&nbsp;</p>

Comments

maedi’s picture

Issue summary: View changes

HTML fix

maedi’s picture

Issue summary: View changes

editor add

quicksketch’s picture

Status: Active » Closed (won't fix)

This isn't the fault of Insert, which does nothing but either call the APIs of WYSIWYG module or tinyMCE. It's a behavior of the libraries that are handling the content after Insert calls their insert APIs.

quicksketch’s picture

Issue summary: View changes

url change