Baidu Editor Cancel height auto Stretch __ Editor

Source: Internet
Author: User

First to download the Baidu editor

Introduction of Baidu Editor

<script type= "Text/javascript" charset= "Utf-8" src= "ueditor.config.js" ></script> <script "type="
Text/javascript "charset=" Utf-8 "src=" Ueditor.all.min.js "> </script>
<!--recommended manual addition in language, Avoid the editor loading failure sometimes because of the load language failure-->
<!--the language file loaded here will overwrite the language type you added to the configuration item, such as the English you configured in the configuration project, the Chinese loaded here, and then the Chinese-->
    <script type= "Text/javascript" charset= "Utf-8" src= "Lang/zh-cn/zh-cn.js" ></script>

You can set the height and width here

<script type= "Text/plain" id= "Myeditor" style= "width:500px;height:500px" ></script>

When instantiating an editor, you can not do so without the given width height

var ue= ue.geteditor (' myeditor ');

can also be given height and width

var UE = Ue.geteditor (' Myeditor ', {
initialframewidth:800,//set editor width
initialframeheight:250,//setting editor height
scaleenabled:true//settings do not automatically adjust the height
//scaleenabled {Boolean} [default value: false]//can be stretched high, (set true when the automatic long high Failure)
});

There is also a direct modification of the Ueditor.config.js
Note: The priority of a given initialframewidth is higher than the style priority given to the container.

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.