We can easily configure CKeditor and image upload plugin with Codeigniter. While configuring we have to make some changes to the CKeditor links. Now we are going to discuss the fully procedure that how to configure the CKeditor from start.
Download this zip file and extract it we will use the ckeditor folder. Download Now
Put these libraries within the base directory or the parallel directories where there are codeigniter application,files and the system folders. In the above image i put it in the assets/ckeditor
.<script src="<?= base_url('assets/ckeditor/ckeditor.js')?> "></script>
<textarea name='myeditor'> </textarea>
<script type="text/javascript">
CKEDITOR.replace( 'detail');
</script>
<script type="text/javascript">
CKEDITOR.replace( 'myeditor', {
extraPlugins: 'imageuploader',
filebrowserImageBrowseUrl :
'<?= base_url()?>assets/ckeditor/plugins/imageuploader/imgbrowser.php?CKEditor=textarea&CKEditorFuncNum=1&langCode=en-gb'
});
</script>
<textarea name="myeditor"></textarea>
<script src="<?= base_url('assets/ckeditor/ckeditor.js')?> "></script>
<script type="text/javascript">
CKEDITOR.replace( 'myeditor', {
extraPlugins: 'imageuploader',
filebrowserImageBrowseUrl : '<?= base_url()?>assets/ckeditor/plugins/imageuploader/imgbrowser.php?CKEditor=textarea&CKEditorFuncNum=1&langCode=en-gb'
});
</script>