Dava
05-04-2011, 08:41 PM
1) Script Title: Ritch Text Editor
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/richtexteditor/index.htm
3) Describe problem: when editing a page that i have previously posted i constantly get multipul like breaks that i do not need e.g.
<P>apples are green and melons to.</P><BR>
<P> </P><BR>
<P>AIDS</P><BR>
anyone go any ideas here is the code im using
<script language='JavaScript' type='text/javascript'>
<!--
//Usage: writeRichText(fieldname, html, width, height, buttons, readOnly)
writeRichText('content', '<?=str_replace("\n", '\n', $content)?>', 500, 500, true, false);
//-->
</script>
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/richtexteditor/index.htm
3) Describe problem: when editing a page that i have previously posted i constantly get multipul like breaks that i do not need e.g.
<P>apples are green and melons to.</P><BR>
<P> </P><BR>
<P>AIDS</P><BR>
anyone go any ideas here is the code im using
<script language='JavaScript' type='text/javascript'>
<!--
//Usage: writeRichText(fieldname, html, width, height, buttons, readOnly)
writeRichText('content', '<?=str_replace("\n", '\n', $content)?>', 500, 500, true, false);
//-->
</script>