admin
Guest
|
 |
« on: September 02, 2010, 04:34: PM » |
|
many people incorrectly place the ckeditor width and height into the config.js file. Doing this controls all the uses of the ckeditor on your site.
The better way is to place this information below the textarea with the ckfinder information like this :
<textarea name="assoc_reg_notes" cols="50" rows="5"><?php echo $row_rsaccounts_message['assoc_reg_notes']; ?></textarea><script type="text/javascript"> CKEDITOR.replace( 'assoc_reg_notes', { toolbar : 'column'
}); </script><script type="text/javascript"> CKEDITOR.config.filebrowserBrowseUrl = 'ckeditor/ckfinder/ckfinder.html'; CKEDITOR.config.filebrowserImageBrowseUrl = 'ckeditor/ckfinder/ckfinder.html?type=Images'; CKEDITOR.config.filebrowserFlashBrowseUrl = 'ckeditor/ckfinder/ckfinder.html?type=Flash'; CKEDITOR.config.filebrowserUploadUrl = 'ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; CKEDITOR.config.filebrowserImageUploadUrl = 'ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images'; CKEDITOR.config.filebrowserFlashUploadUrl = 'ckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'; CKEDITOR.config.colorButton_enableMore=true; CKEDITOR.config.width ='350px'; CKEDITOR.config.height='500px'; /*CKEDITOR.config.skin = 'office2003';*/ /*CKEDITOR.config.skin = 'v2';*/ CKEDITOR.config.skin = 'kama'; </script>
Doing it this way makes it very easy to control the width and height on a per instants basis
|