解决编辑器的浏览器不兼容问题办法
作者:文墨网 转贴自:本站原创 点击数:2340
替换Editor.js里面的函数
function BtnMouseUp() { if (event.srcElement.tagName != IMG) { event.cancelBubble = true; return false; }
var image = event.srcElement; var element = image.parentElement;
if (element.YUSER&#111nCLICK) eval_r(element.YUSER&#111nCLICK + anonymous());
element.className = BtnMouseOverUp; image.className = Ico;
event.cancelBubble = true; return false; }
为
function BtnMouseUp() { if (event.srcElement.tagName != IMG) { event.cancelBubble = true; return false; }
var image = event.srcElement; var element = image.parentElement;
if(navigator.appVersion.match(/8./i)=='8.'){ if (element.YUSER&#111nCLICK) eval_r(element.YUSER&#111nCLICK + &#111nclick(event)); } else{ if (element.YUSER&#111nCLICK) eval_r(element.YUSER&#111nCLICK + anonymous()); }
element.className = BtnMouseOverUp; image.className = Ico;
event.cancelBubble = true; return false; }
即可
|