如图,使用Ueditor默认编辑器时候,其工具栏是一直漂浮在窗口上方的,有时候我们在Ueditor编辑框后面还有很多别的输入框时候,都拉到底部了,已经不见Ueditor编辑区域了,但是编辑框依然浮动在窗口上,这就不好看了。

我们可以通过下面的方式,设置取消工具条浮动
UE.getEditor('editor', {autoFloatEnabled:false});
最后看看效果,如图,可以看到工具栏已经不再漂浮在窗口上方了

最后,如果需要配置多个参数时候,比如取消工具栏浮动以及固定编辑框高度,配置方式如下,也就是多个参数之间以英文逗号分隔。
UE.getEditor('editor', {autoHeightEnabled: false, autoFloatEnabled:false});
网友评论