I've got the very same problem. Enters before an image end up behind it.
I would love to try out the fix mentioned above, but when I edit the _source/htmlparser/fragment.js file nothing changes. Probably because I'm editing the source files and not the ones used by the editor itself, but I can't seem to find that code in the regular files. A grep on the code found nothing (aside from the ones in _source).
I'm using Chrome, but it also happens in IE and Firefox. I'm using CKEditor 3.2.
I can confirm that the problem appears where a <br /> immediately precedes an <img> tag. As soon as the mode is changed (and, presumably, when submitted), the <br /> is stripped out. If there is as little as a space or a tab between the <br /> and the <img>, the problem does not occur.
Until this get patched, I'm thinking of writing a listener that writes a tab character between <br /> and <img> on mode change and submit (as I don't want to edit the core). Anyone know where I can find the full event list in the API? Can't seem to locate it or google it.
i have spent, more than 3 hours today (complete noob), trying to understand, and fix this stripped page break isssue...
for me it is all instances -- not just related to placement of an image...
this is extreemly difficult for me to deal with - does anyone have any other ideas?
all and every single page break is stripped <br> <br /> - the stylized breaks are not stripped... this is almost to the point of being a crisis for me... as i have spent the better part of the week on and off tweeking this and comparing to other editors --- and i need to present this site on monday....
aaakk -- please help! i find it hard to imagine we cannot put in carraige returns!
Re: <br> tags before <img> tag problem
Re: <br> tags before <img> tag problem
I would love to try out the fix mentioned above, but when I edit the _source/htmlparser/fragment.js file nothing changes. Probably because I'm editing the source files and not the ones used by the editor itself, but I can't seem to find that code in the regular files. A grep on the code found nothing (aside from the ones in _source).
I'm using Chrome, but it also happens in IE and Firefox. I'm using CKEditor 3.2.
A fix would be of great help!
Re: <br> tags before <img> tag problem
Until this get patched, I'm thinking of writing a listener that writes a tab character between <br /> and <img> on mode change and submit (as I don't want to edit the core). Anyone know where I can find the full event list in the API? Can't seem to locate it or google it.
Re: <br> tags before <img> tag problem
Yes, my patch was for "_source/htmlparser/fragment.js".
if you use a packed version of "ckeditor.js", please try to apply below patch.
... }H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}} if(!F)if(v.length>0){A();F=1} /* Insert this line */ };function A(){while(v.length)w.add( ...The code "function A()" would be found at the middle of line 25.
Obviously this patch is too ugly, but it works.
I hope this will help.
Re: <br> tags before <img> tag problem
Thanks a lot!
Re: <br> tags before <img> tag problem
AND THIS FIX DOES NOT WORK...
}H=H.clone();H.parent=w;w=H;u.splice(G,1);G--;}}if(!F)if(v.length>0){A();F=1}};function A(){while(v.length)w.add(v.shift())i am very frustrated...
i have spent, more than 3 hours today (complete noob), trying to understand, and fix this stripped page break isssue...
for me it is all instances -- not just related to placement of an image...
this is extreemly difficult for me to deal with - does anyone have any other ideas?
all and every single page break is stripped <br> <br /> - the stylized breaks are not stripped... this is almost to the point of being a crisis for me... as i have spent the better part of the week on and off tweeking this and comparing to other editors --- and i need to present this site on monday....
aaakk -- please help!
i find it hard to imagine we cannot put in carraige returns!