Welcome to my website, have a nice day!
Dream it, Do it, Make it!

百度ueditor解决页面组件被覆盖问题

在使用ueditor的过程中,会出现表单组件被ueditor覆盖的问题,解决的方式如下:

ue = UE.getEditor('editor', {
            toolbars: [
                ['undo', 'redo', 'bold', 'italic', 'underline', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'fontfamily', 'fontsize', 'paragraph']
            ],
            autoHeightEnabled: true,
            autoFloatEnabled: true,
            elementPathEnabled: false,
            zIndex: 100,
            serverUrl: ''
        });

即,通过设置ueditor的zIndex属性来解决,默认值是900。

References

  1. 百度编辑器UEditor自定义层级z-index
  2. UEditor前端配置项说明-编辑器在页面上的z-index层级的基数,默认是900
赞(0)
未经允许禁止转载:Ddmit » 百度ueditor解决页面组件被覆盖问题

评论 抢沙发

登录

找回密码

注册