IE9下Coolite.Ext出现createContextualFragment错误

解决Ext在IE9上报错“createContextualFragment”,只需要在使用Coolite.Ext页面加入如下代码即可:
   if ((typeof Range !== "undefined") && !Range.prototype.createContextualFragment) {
        Range.prototype.createContextualFragment = function(html) {
            var frag = document.createDocumentFragment(),
                div = document.createElement_x("div");
            frag.appendChild(div);
            div.outerHTML = html;
            return frag;
        };
    }

posted @ 2013-07-30 15:20  linyujade  阅读(206)  评论(0编辑  收藏  举报