Load the editor under the CI Framework and now review the content. My frame filename is called CI
1. Download Baidu Editor ueditor,http://ueditor.baidu.com/
In general, download version ubuilder and copy the Ueditor to the root of the CI framework.
The download Good editor directory is:
-ueditor
----Dialogs Popup dialog with the corresponding resources and JS file
----Lang Editor internationalization-displayed files
----PHP involves server-side operation of background files
----Themes style pictures and style files
----Third-party third-party plugins (including code highlighting, source editing and other components)
----The results of the Ueditor.all.js Development Code merge, package files for all files in the directory
----A compressed version of the Ueditor.all.min.js ueditor.all.js file, it is recommended to use it in a formal deployment
----Ueditor.config.js Editor configuration file, suggest and editor instantiation page in same directory
----ueditor.parse.js Edit Content Display page reference, will automatically load the table, list, code highlighting style, see the Content display document
----The compressed version of the Ueditor.parse.min.js ueditor.parse.js file, it is recommended that you use it when the Content Display page is formally deployed
2. Add the following statement to the page where you want to integrate the Baidu Editor:
<Body> <!--configuration file - <Scripttype= "Text/javascript"src= "<?php echo base_url ()? >ueditor/ueditor.config.js"></Script> <!--Editor Source file - <Scripttype= "Text/javascript"src= "<?php echo base_url ()? >ueditor/ueditor.all.js"></Script> <!--Instantiation Editor - <Scripttype= "Text/javascript"> varEditor=Ue.geteditor ('Container');//container The ID of the form </Script> <formAction= "server.php"Method= "POST">/ * serve.php for you to click on the link to submit the form * /<!--Loading the editor container - <ScriptID= "Container"name= "Content"type= "Text/plain">here to write your initialization content</Script> </form></Body>
3. Open File Ci/ueditor/ueditor.config.js
Find these few statements:
var URL = window. Ueditor_home_url | | Getuebasepath (); Ueditor_home_url: url serverurl: url + "php/controller.php"
Change the above statement to:
var URL = window. Ueditor_home_url | | "/ci/ueditor/"; Ueditor_home_url: "/ci/ueditor/"serverurl: "/ci/ueditor/php/controller.php"
Then refresh the page to be OK.
Note here that the editor file you downloaded does not have to be deleted when you do not know what the function is! Otherwise, the editor may not load.
For more information about the editor, please visit: http://fex.baidu.com/ueditor/, the document is more convincing!
Deployment of "CI Framework Foundation" Baidu Editor