Deployment of "CI Framework Foundation" Baidu Editor

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.