Hi,
I am using the latest PHP FCK Editor installation.
When posting the html I have generated in my FCK editor into a webpage I am getting: \r\n displaying on my page obviously where I have entered a new line break should be I don't understand this because I have set FCK up on two other sites and this problem is not occuring.
Also, the editor is adding slashes whereas it does not do this with my other set ups! So I cant display images, however the images work if I do stripslashes() (code snippet shown below), however if I do this instead of having: \r\n appear on my page, I now am left with just: rn
$oFCKeditor = new FCKeditor('new_content') ;
$oFCKeditor->BasePath = '/fckeditor/' ;
$oFCKeditor->Value = stripslashes($content);
$oFCKeditor->Create() ;
So I am stuck, as I dont understand where the \r\n are coming from. Please help.
Btw, magic quotes are disabled.
Thanks,
Lee.
Mon, 09/29/2008 - 15:58
#1
Re: Editor is adding slashes and \r\n - but why?
Ok, when I create my page in the editor and view source all appears ok, then when I do a post to preview the page the \r\n are appearing, so there does not appear anyway I can 'intercept' the insertion of \r\n and this would lead me to believe that it is an internal bug with FCK editor.
Anyways, all I need to know is why the editor is inserting \r\n
Perhaps I'll install an older version of FCK Editor, see if that works - funny to think I may have to downgrade
Thanks,
Re: Editor is adding slashes and \r\n - but why?
I have fixed the problem and it turns out to be a very simple setting. In fckconfig.js I simply set:
You guys seem as useful as a chocolate tea-pot. 
FCKConfig.FormatOutput = false ;
And it works no more stupid \r\n inserted into my html - what a stupid default setting to have this set to true anyway!
PS: Thanks FCK Editor for great documentation - not!
Re: **SOLVED** Editor is adding slashes and \r\n - but why?
Hello Andastre
Is this solution still working for you? I had the same problem and followed your solution which solved it. For a while at least. Suddenly "rn" is back
I'm using stripslashes because otherwise url's and image links not works because my web server provider have magic quotes ON.
Right now I can't see any solution
Regards, Magnus