首页 > 其他 > 详细

ueditor1.4.3 在IE8下的 BUG

时间:2020-06-27 10:36:49      阅读:88      评论:0      收藏:0      [点我收藏+]

ueditor1.4.3  .net 版 在IE8 下,多图片上传完成后,点击确认时报错,无法插入图片到编辑器中

 

原因是 ueditor.all.js 中的 24835 行

if (whitList[tagName].indexOf(key) === -1) {
                node.setAttr(key);
            }

判断报错,IE8 不支持这样的写法,

技术分享图片
var _index = -1;
            for (var i = 0; i < whitList[tagName].length ; i++) {
                if (whitList[tagName][i] == key)
                {
                    _index = i;
                    break;
                }
            }
            if (_index === -1) {
                node.setAttr(key);
            }
技术分享图片

 

ueditor1.4.3 在IE8下的 BUG

原文:https://www.cnblogs.com/surplus/p/13197355.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!