ckeditor all working implemented on a phpnuke cms site
but when a user just types in something like "just a test" and then saves the actual content is saved in the database as:
<p>
sdfsdfsf</p>
note the <p> </p> tags and a tab has crept in somehow
any ideas ?
but when a user just types in something like "just a test" and then saves the actual content is saved in the database as:
<p>
sdfsdfsf</p>
note the <p> </p> tags and a tab has crept in somehow
any ideas ?

Re: blank space at beginning of textareas ?
Re: blank space at beginning of textareas ?
Re: blank space at beginning of textareas ?
http://docs.cksource.com/CKEditor_3.x/D ... Formatting
Re: blank space at beginning of textareas ?
echo "<tr><td width=\"150\" valign=\"top\"><b>"._NUKECADSDESC ." <font color=\"red\">*</font> \n"; $_SESSION[ckfinder_baseUrl] = "http://www.mysite.com/modules/Motorhome_Sales/uploads/"; $_SESSION[ckfinder_baseDir] = "/home/admin/public_html/modules/Motorhome_Sales/uploads/"; echo "<script type=\"text/javascript\" src=\"includes/wysiwyg/ckeditor/ckeditor.js\"></script>"; echo "<script type=\"text/javascript\" src=\"includes/wysiwyg/ckfinder/ckfinder.js\"></script>"; if($featured=='1') { echo "<BR>($FeaturedDescLength "._NUKECADSMAXCHARS.")</b></td>\n"; echo "<td><textarea class=\"ckeditor\" id=\"editor1\" name=\"cdesc\" cols=\"80\" rows=\"8\" style=\"width:=400\"></textarea>"; } else { echo "<BR>($DescLength "._NUKECADSMAXCHARS.") </b></td>\n"; echo "<td><textarea class=\"ckeditor\" id=\"editor1\" name=\"cdesc\" cols=\"80\" rows=\"8\" style=\"width:=400\"></textarea>"; } ?> <script type="text/javascript"> // This is a check for the CKEditor class. If not defined, the paths must be checked. if ( typeof CKEDITOR == 'undefined' ) { document.write( '<strong><span style="color: #ff0000">Error</span>: CKEditor not found</strong>.' + 'This sample assumes that CKEditor (not included with CKFinder) is installed in' + 'the "/ckeditor/" path. If you have it installed in a different place, just edit' + 'this file, changing the wrong paths in the <head> (line 5) and the "BasePath"' + 'value (line 32).' ) ; } else { var editor = CKEDITOR.replace( 'editor1' ); editor.setData( '' ); // Just call CKFinder.SetupCKEditor and pass the CKEditor instance as the first argument. // The second parameter (optional), is the path for the CKFinder installation (default = "/ckfinder/"). CKFinder.SetupCKEditor( editor, '/includes/wysiwyg/ckfinder/' ) ; // It is also possible to pass an object with selected CKFinder properties as a second argument. // CKFinder.SetupCKEditor( editor, { BasePath : '../../', RememberLastFolder : false } ) ; } </script>Re: blank space at beginning of textareas ?
Re: blank space at beginning of textareas ?
<p><line break>text</p>
problem by putting the following lines in my config file;
config.shiftEnterMode = CKEDITOR.ENTER_BR;
config.enterMode = CKEDITOR.ENTER_BR;
Re: blank space at beginning of textareas ?
Re: blank space at beginning of textareas ?
Re: blank space at beginning of textareas ?