- Download the ckeditor.zip file
- Paste ckeditor.zip file on root directory of the site or you can paste it where the files are
- Extract the ckeditor.zip file
- Open the desired php page you want to integrate with ex: page1.php
- Add some javascript first below, this is to call elements of ckeditor and styling and css without this you will only a blank textarea
- Now, you need to call the work code of ckeditor on your page page1.php below is how you call it
basePath = '/ckeditor/';
$ckeditor->config['filebrowserBrowseUrl'] = '/ckfinder/ckfinder.html';
$ckeditor->config['filebrowserImageBrowseUrl'] = '/ckfinder/ckfinder.html?type=Images';
$ckeditor->config['filebrowserFlashBrowseUrl'] = '/ckfinder/ckfinder.html?type=Flash';
$ckeditor->config['filebrowserUploadUrl'] = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files';
$ckeditor->config['filebrowserImageUploadUrl'] = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images';
$ckeditor->config['filebrowserFlashUploadUrl'] = '/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';
$ckeditor->editor('CKEditor1');
?>
- What ever name you want, you can name to it ckeditor by changing the step 6 code last line
$ckeditor->editor('mycustomname');
- Open-up the page1.php, see it, use it, share it and Enjoy
No comments:
Post a Comment