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;
};
}