I use FCK in a testing situation on W32 Apache with php, writing my content to a .txt file for testings. This works well.
Online testing on my own domain, external Unix server with Apache and php also, the following happens:
When I insert (table or flash swf) content in the textarea some html is changed, writing " behind all doublequotes.
In fckeditor.js I found this below, but commenting the " line makes things worse, not returning code properly anymore and all doublequotes slashed like \"
FCKeditor.prototype._HTMLEncode = function( text )
{
if ( typeof( text ) != "string" )
text = text.toString() ;
text = text.replace(/&/g, "&") ;
text = text.replace(/"/g, """) ;
text = text.replace(/</g, "<") ;
text = text.replace(/>/g, ">") ;
text = text.replace(/'/g, "'") ;
return text ;
}
I tried several ideas, working with string replace and stripslashes() but without any good results.
Anyone out here having a solution?
And: what does the _samples/samplelist.htm do, when it processes the textarea content? it doesn't give back the same " extras? It gives back the code nicely, same server though....
Online testing on my own domain, external Unix server with Apache and php also, the following happens:
When I insert (table or flash swf) content in the textarea some html is changed, writing " behind all doublequotes.
In fckeditor.js I found this below, but commenting the " line makes things worse, not returning code properly anymore and all doublequotes slashed like \"
FCKeditor.prototype._HTMLEncode = function( text )
{
if ( typeof( text ) != "string" )
text = text.toString() ;
text = text.replace(/&/g, "&") ;
text = text.replace(/"/g, """) ;
text = text.replace(/</g, "<") ;
text = text.replace(/>/g, ">") ;
text = text.replace(/'/g, "'") ;
return text ;
}
I tried several ideas, working with string replace and stripslashes() but without any good results.
Anyone out here having a solution?
And: what does the _samples/samplelist.htm do, when it processes the textarea content? it doesn't give back the same " extras? It gives back the code nicely, same server though....
RE: html changed:
What I get is this, without the spaces between ofcourse: & q u o t ;
It is written here as "