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

本文不再更新,可能存在内容过时的情况,实时更新请移步原文地址:百度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: 'https://www.4spaces.org/ueditor-zindex-config/'
        });

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

本文不再更新,可能存在内容过时的情况,实时更新请移步原文地址:百度ueditor解决页面组件被覆盖问题

原文地址:https://www.cnblogs.com/cobcmw/p/11791765.html