http://some_url/
<?php
function prepTextForEditor($in)
{
$out = str_replace(chr(10), "", $in);
$out = str_replace(chr(13), "", $out);
return str_replace("'", "\'", $out);
}
$strTEXT = $row["content"];
?>
oFCKeditor.Value = " <?php echo prepTextForEditor($strTEXT);?> " ;

RE: oFCKeditor.Value Error
$strTEXT = addslashes($row["content"]);
?>
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'content' ) ;
oFCKeditor.Width = 600 ; // 400 pixels
oFCKeditor.Width = "100%" ; // 250 pixels
oFCKeditor.Value = " <?=$strTEXT;?> " ;oFCKeditor.Create() ;
</script>
END CODE -->
RE: oFCKeditor.Value Error
RE: oFCKeditor.Value Error
<!-- START CODE
function prepareForEditor($s) {
$a = explode("\n",$s);
for ($i=0;$i<count($a);$i++) {
$a[$i] = "\"".addslashes($a[$i]);
if (($i+1) < count($a)) $a[$i] .= "\"+";
else $a[$i] .= "\";";
}
return implode("\n",$a);
}
$strTEXT = prepareForEditor($row["content"]);
?>
<script type="text/javascript">
var oFCKeditor = new FCKeditor( 'content' ) ;
oFCKeditor.Width = 600 ; // 400 pixels
oFCKeditor.Width = "100%" ; // 250 pixels
oFCKeditor.Value = <?=$strTEXT;?>oFCKeditor.Create() ;
</script>
END CODE -->
RE: oFCKeditor.Value Error
Or replace '+' with +
RE: oFCKeditor.Value Error