冲突引起的原因:ueditor全屏时会把父节点的position全部改为static,模态框样式也全部改变
解决方法:修改ueditor.all.min.js或者ueditor.all.js(根据项目引用情况),当父节点为el-dialog时,不修改position
找到
if (fullscrenn){ }
大约在29423行,把代码
container.style.position = "static"
改为:
var isModal = false; //判断该dom是否为el-dialog var classes = container.className; if (classes !== undefined) { if (classes === "el-dialog_wrapper") { isModal = true; } } //如果是el-dialog,则不设置position为static if (!isModal) { container.style.position = "static"; }
ok,大功告成~
-------------------------------------------------------------------------------------------------
QQ群:871934478
版权所有,转载请注明源地址
-------------------------------------------------------------------------------------------------