thinkphp Ueditor The use of the method, _php tutorial

Source: Internet
Author: User

Thinkphp the use of ueditor under the detailed,

This paper describes the use of Ueditor under thinkphp. Share to everyone for your reference, as follows:

1, first need to download ueditor, download address:

2, download the corresponding PHP version, after download renamed to Ueditor, according to the need to put in the corresponding project directory. I put the location for the Public/admin folder, admin for background access to the portal file directory.

3, the use of the project

The first step is to introduce the core JS file:

Then add the label to the file, note the Set ID property <br/><span><u> Copy the Code </U></span> code as follows: <textarea name= " Content "id=" Editorid ">

followed by the initialization editor, note the configuration path


1. The path of Ueditor_home_url is configured as the location of Ueditor.
2, the image upload path configuration
3, Editor.render ("TextArea ID consistent");

At this point a basic completion.

But, under IE9, the editor doesn't have a bit of effect, what's going on?

Under the IE9, it is necessary to
Copy the Code code as follows: window. Ueditor_home_url = "__public__/ueditor/";
The path setting code is placed between the introduction of JS file and initialization.

It is hoped that this article is helpful to the PHP program design based on thinkphp framework.

Articles you may be interested in:

    • Using the Ueditor Rich Text editor in thinkphp
    • thinkphp integrated Baidu Ueditor Graphic tutorial
    • thinkphp automatic Escape solution for reading errors caused by storing rich text editor content
    • Example analysis of page usage in thinkphp
    • A simple method of using verification code in thinkphp true techarticle thinkphp The use of ueditor in detail, the example of this paper describes the use of Ueditor under the Thinkphp method. Share to everyone for reference, as follows: 1, the first need to download Ueditor, the next ...

  • Related Article

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