Re: Still puts in rn after every line break or p tag

  •  05-02-2011, 7:57 AM

    Re: Still puts in rn after every line break or p tag

    OK I managed to resolve this now.
    Where before I had the text output from a database I put the content from theabase into a variable and wrapped it in "double quotes"
     
    Like so:
    if($get_page['page_center_content']=="") { $center_content = "

    Type your new content here for CENTER content

    "; } else { $center_content = $get_page['page_center_content']; } //Step 2: Create Editor object. $editorCENTER=new CuteEditor(); $editorCENTER->Text="$center_content";

    NOW without Double quotes works fine.

    if($get_page['page_center_content']=="") { $center_content = "

    Type your new content here for CENTER content

    "; } else { $center_content = $get_page['page_center_content']; } //Step 2: Create Editor object. $editorCENTER=new CuteEditor(); $editorCENTER->Text=$center_content;
View Complete Thread