Ueditor 1.2.6 How to use _php tutorial

Source: Internet
Author: User
This article takes the PHP version as an example:
File Download: http://ueditor.baidu.com/website/download.html
You can also define the content yourself and then download it to help us streamline a lot of things.
Take the local PHP environment as an example, now create an app directory under the WWW directory as the test directory, and then extract the downloaded Ueditor folder into the app folder.


Then, create a index.php file under the app folder.
Then enter the following code:
Copy the Code code as follows:



Editor full version instance






Ueditor Submission Example




Starting with 1.2.6, the data is automatically synced without the need to manually call the Sync method
submit via JS invoke submit






and then browser input localhost/app/
You can view the editor;
You will then find that the image upload function is not available and you need to open ueditor.config.js
Then find this line of code:
Copy CodeThe code is as follows:
var URL = window. Ueditor_home_url | | (function () {

Then add this line of code to the top of the line:
Copy CodeThe code is as follows:
Window. ueditor_home_url| | " /app/ueditor/";


Then, refresh the page, the image upload function can be used.
Official description of Ueditor document address: http://ueditor.baidu.com/website/document.html
Please note that the file name in the official documentation is incorrect (it should not be modified after the version upgrade).

http://www.bkjia.com/PHPjc/328104.html www.bkjia.com true http://www.bkjia.com/PHPjc/328104.html techarticle This article takes the PHP version as an example: File download: Http://ueditor.baidu.com/website/download.html can also define the content themselves, and then download, which helps us to streamline a lot of things. ...

  • 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.