I have TinyMCE installed on the back end of a site. Some of the html it's accessing isn't totally valid, which I realize is the problem in itself. However, TinyMCE is messing things up by making things valid. I have an <img>
with no parents (no <p>
, no <div>
, etc), and TinyMCE is wrapping the <img>
in <p></p>
. I'm trying to find a setting that will stop that from happening.
Essentially, I want TinyMCE to allow <img>
to be it's own element, rather than a child element, if that makes sense. My current settings are:
tinyMCE.init({
theme : "advanced",
mode : "textareas",
relative_urls : false
});