Ueditor Rich Text Web Editor custom default setting method

Source: Internet
Author: User

1. When you use the Ueditor editor to write content, you will find that when you enter more content, the border height of the edit box will automatically increase, if you want to enter more content when you scroll the effect of the frame.

Method: Locate the Ueditor.config.js in the root directory of the Ueditor file, open with the compiler, and see the 282~286 line code as follows:

        scaleenabled//        can pull high elongation, default true (when turned on, automatic long high failure)        //,scaleenabled:false        //,minframewidth:800    // Minimum width When the editor is dragged, default        //,minframeheight:220  //editor Drag minimum height, default 220        

is now modified as follows: (The minimum height of the compiler drag can be set by itself)

        scaleenabled//        can pull high elongation, default true (when turned on, automatic long high failure)        , scaleenabled:true        //,minframewidth:800    // Minimum width When the editor is dragged, default        minframeheight:300,  minimum height when dragging//editor, default 220        

The effect is as follows:

2. Open Crawl remote image localization

Method: Open Ueditor.all.js, search "Crawl" when the following code appears:

You can see the configuration parameters in your code: the default value for the Catchremoteimageenables setting is false

Next, open the Ueditor.config.js, plus the following configuration parameter code to open (location can be arbitrary)

// Crawl remote picture is turned on, default  True, catchremoteimageenable:true

3. Set the default font, font size, and other information for the Ueditor editor

Method: Open Ueditor.all.js, search "set default font and font size" when the following code appears:

Modify the above font, font size can be;

Where the ueditor comes with fonts that can be seen in Ueditor.config.js, as follows

Ueditor Rich Text Web Editor custom default setting method

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.