Hello all,
I'm taking over a development project for a company and would like to use the previous developer's code instead of redoing everything. He used your program FCK editor.
Here he's creating a field which will gather the info from the user that will later be used as page content. The main problem is that the text shown in the textarea created by the editor doesn't display the database information properly, even when changing the value to <?=nl2br($out['BODY'])?>. When initially displayed the value content removes all the line breaks, so if you want to keep the line breaks you have to re-enter them. You can see how vexing this would be to anyone updating their page content. So how do I get it to display the line breaks?
I'm taking over a development project for a company and would like to use the previous developer's code instead of redoing everything. He used your program FCK editor.
<SCRIPT language="javascript"> <!-- var oFCKeditor = new FCKeditor('BODY') ; oFCKeditor.Width = 600; oFCKeditor.Height = 300; oFCKeditor.Value = "<?=$out['BODY']?>"; oFCKeditor.Create(); //--> </SCRIPT>
Here he's creating a field which will gather the info from the user that will later be used as page content. The main problem is that the text shown in the textarea created by the editor doesn't display the database information properly, even when changing the value to <?=nl2br($out['BODY'])?>. When initially displayed the value content removes all the line breaks, so if you want to keep the line breaks you have to re-enter them. You can see how vexing this would be to anyone updating their page content. So how do I get it to display the line breaks?
Re: oFCKeditor create() removes line breaks?