Ueditor Baidu Rich Text Editor--the solution to make the editor adaptive width

Source: Internet
Author: User

Ueditor Baidu Rich Text Editor's Initialframewidth property, the default value is 1000.

The screen width cannot be adaptively adjusted. 1:

At first, I was setting initialframewidth=null directly. Effect 2:

So the ueditor Baidu Rich Text editor will get the screen width the first time it loads, and then assign the value to the Initialframewidth property.

It's true that you can fit the width of the screen the first time it loads, but it seems to be a little over the top of the gray bar. And here's another question:

When you change the size of your browser, there is a very serious typographical bug.

Because it does not adapt to the width. You will find the editor width overflow. 3:

Solution:

1. Open/ueditor/ueditor.config.js

Locate the Initialframewidth property, which is the default valueof. initialframewidth:1000

Change the value to ' 100% ' , which is initialframewidth: ' 100% '

After saving, refresh your browser and see ...

Effect 4:

Ueditor Baidu Rich Text Editor--the solution to make the editor adaptive width

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.