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.