admin
Guest
|
 |
« on: August 18, 2010, 12:15: PM » |
|
to use a custom toolbar you need to point to it when you add the coding to replace the textarea field where you want the editor to appear.
This is the typical code used on a page which also calls the ckfinder
<textarea name="about_us" cols="50" rows="5"><?php echo $row_rsassoc['about_us']; ?></textarea><script type="text/javascript"> CKEDITOR.config.filebrowserBrowseUrl = 'fckeditor/ckfinder/ckfinder.html'; CKEDITOR.config.filebrowserImageBrowseUrl = 'fckeditor/ckfinder/ckfinder.html?type=Images'; CKEDITOR.config.filebrowserFlashBrowseUrl = 'fckeditor/ckfinder/ckfinder.html?type=Flash'; CKEDITOR.config.filebrowserUploadUrl = 'fckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files'; CKEDITOR.config.filebrowserImageUploadUrl = 'fckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images'; CKEDITOR.config.filebrowserFlashUploadUrl = 'fckeditor/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash'; CKEDITOR.replace( 'about_us', { customConfig : 'fckeditor/config.js' }); </script>
The bold red is what points to the custom toolbar which is stored in a file called config.php in the same directory of the editor itself.
|