I have set up FCKEditor and it's trimming / deleting my lovely empty line feeds.
This:
Is becoming:
If I wrap the code in a HTML tag (like pre) it seems to ignore it.. but then the preview renders it as pre text then instead. I have also tried server side replacing all line feeds with spaces.. there are then technically line feeds but there are "<p> </p>" then which kind of defeats the purpose in having my empty lines. I've also toggled to false and true all the options in the js config that I thought would help.. none of them seemed to.
The empty lines are important because I want to be able to switch back and for the HTML and be able to edit sections (it is a long page), perhaps sometimes in the database itself and possibly not *gasps* in FCKEditor. One big blob of HTML makes it hard to edit.
Can I fix this? I've been googling "FCKEditor trims line feeds" for ages and come up with nothing useful. I'd appreciate if anyone could give me a heads up.
Thanks for your time,
Matthew
This:
<!-- "What is Matthew1471?" --> <p style="font-weight: bold; text-decoration: underline">"What is Matthew1471?"</p> <p>Matthew1471! is an alias for Matthew James Roberts (or "Matthew Roberts" for short) used online when providing technical knowledge, ASP applications and other technical solutions.</p> <!-- "How is this hosted?" --> <p style="font-weight: bold; text-decoration: underline">"How is this hosted?"</p>
Is becoming:
<!-- "What is Matthew1471?" --> <p style="font-weight: bold; text-decoration: underline;">"What is Matthew1471?"</p> <p>Matthew1471! is an alias for Matthew James Roberts (or "Matthew Roberts" for short) used online when providing technical knowledge, ASP applications and other technical solutions.</p> <!-- "How is this hosted?" --> <p style="font-weight: bold; text-decoration: underline;">"How is this hosted?"</p>
If I wrap the code in a HTML tag (like pre) it seems to ignore it.. but then the preview renders it as pre text then instead. I have also tried server side replacing all line feeds with spaces.. there are then technically line feeds but there are "<p> </p>" then which kind of defeats the purpose in having my empty lines. I've also toggled to false and true all the options in the js config that I thought would help.. none of them seemed to.
The empty lines are important because I want to be able to switch back and for the HTML and be able to edit sections (it is a long page), perhaps sometimes in the database itself and possibly not *gasps* in FCKEditor. One big blob of HTML makes it hard to edit.
Can I fix this? I've been googling "FCKEditor trims line feeds" for ages and come up with nothing useful. I'd appreciate if anyone could give me a heads up.
Thanks for your time,
Matthew
Re: Simple Question.. Simple Answer?
You can find in several posts the reason why: the browsers do not fully preserve the original content.
Re: Simple Question.. Simple Answer?
I will search more in the forum (forum doesn't seem that well indexed on google in comparison to the bug tracker).

Thanks
Update: For others looking for the answer here is a link : viewtopic.php?f=5&t=10388