Using CKEditor with PHP

CKEditor with PHP

CKEditor can be used to add a editor into a custom cms, or any othered desired application where you want control to edit text, images, video or source code. The editor is similar to what you would see in WordPress, Drupal and Joomla. Personally, I think it is better than default cms editors since it has more bells and whistles.

The procedure to download and use the editor is quick and simple.

To add CKeditor into a php application.
1) Download CKeditor
2) Extract
3) FTP into the directory.
4) Add the Javascript and code into desired page.
5) Add javascript to the files into the head of the file for which you will use the editor
<script type="text/javascript" src=""></script>
<script src="" type="text/javascript"></script>
6) Add the code into your desired file. The code samples exist in the sample files located in the _samples directory.
7) Option:
Use custom CRUD script to update desired content from database.

Note: If you want use html, head and body tags within the editor code
a) Open config.js
b) Add the text: