Hi!
I've started evaluating/using CKEditor 4.0 for a small project I'm working on, and I just ran into a bit of an issue which I would appreciate help with. I have searched the forum (which as usual won't yield any good results) and browsed around the API but have as of yet been unable to find the answer.
I have code coming from outside the editor looking like this;
<h1>Header</h1>
<p><img style="..." src="..." width="100" height="100" align="left" />There is various unbroken text in these paragraphs, the text seems to be untouched and not affecting anything else.<br clear="all" /></p>
<p><img style="..." src="..." width="100" height="100" align="left" />There is various unbroken text in these paragraphs, the text seems to be untouched and not affecting anything else.<br clear="all" /></p>
<p><img style="..." src="..." width="100" height="100" align="left" />There is various unbroken text in these paragraphs, the text seems to be untouched and not affecting anything else.<br clear="all" /></p>
As you can see, there is a <br clear="all" /> tag before the closing </p>. This is to prevent the floating images aligned to the left to indent the next paragraph, and the next and so on.
I've tried placing it between the paragraphs, but no change.
What happens is that the whole <br clear="all" /> part is removed from the parsed HTML. I don't think it's removed/changed by switching back and forth between source mode because the missing <br> tag is evident as soon as the editor is initiated with the HTML in question.
When I tried placing the <br clear="all" /> tag between the paragraphs instead of inside, I got <p> </p> inserted between the paragraphs instead...
It feels to me like there is something with the parser that removes the "trailing" <br> tag from the end of the <p>...</p>, but is this a configuration setting (how, where?) or is it a bug?
Grateful for answers!
- Peter
I see this in 3.6 also.
I see this in 3.6 also.
<p>test <br /></p>
get automatically converted to
<p>test </p>