Hi Everyone,
I have been using FCKeditor happily for quite a while and only until now came across a very interesting bug. FYI, I have been able to recreate on the newest version of FCKeditor.
In the editor click Source and then enter the following code:
<div style="position: absolute; right: 30px; background: #EAEAE2 url('/images/stone-siding-banner.jpg') no-repeat; width: 458px; height: 92px;"></div>
Switch away from Source and then back and the source will be gone, zip, zilch, nada, nothing. It is not a showstopper for me because if you save the form without switching the code is sent as it should be. However the minute you toggle source...syanora.
I noticed that if I enter some text in between the div tags then it works, but blank divs get stripped somehow.
Any ideas on where in the code we could pinpoint this problem?
Thanks,
Mike
I have been using FCKeditor happily for quite a while and only until now came across a very interesting bug. FYI, I have been able to recreate on the newest version of FCKeditor.
In the editor click Source and then enter the following code:
<div style="position: absolute; right: 30px; background: #EAEAE2 url('/images/stone-siding-banner.jpg') no-repeat; width: 458px; height: 92px;"></div>
Switch away from Source and then back and the source will be gone, zip, zilch, nada, nothing. It is not a showstopper for me because if you save the form without switching the code is sent as it should be. However the minute you toggle source...syanora.
I noticed that if I enter some text in between the div tags then it works, but blank divs get stripped somehow.
Any ideas on where in the code we could pinpoint this problem?
Thanks,
Mike
Re: Bug Found with Source View
I think this ticket is similar to the issue you are noticing https://dev.fckeditor.net/ticket/1415.

However, as you pointed out, any text inside the <div> and it won't be stripped out. Also, the insert DIV dialog in editor mode has an option to apply inline styles which would then create a DIV with an empty <p> inside it. Bug or not ..... hard to say