我这个fckeditor版本,不知道是几,反正在chrome下报错了
后者的页面里使用了fckeditor,
然后就报错了。
解决办法:
打开fckeditor\editor\js\fckeditorcode_gecko.js
找到:
FCKTools.FixDocumentParentWindow = function(A){ if (A.document) A.document.parentWindow=A; for (var i=0;i<A.frames.length;i++) FCKTools.FixDocumentParentWindow(A.frames[i]);};
修改为:
FCKTools.FixDocumentParentWindow = function(A){try{ if (A.document) A.document.parentWindow=A;} catch(e){};for (var i=0;i<A.frames.length;i++) FCKTools.FixDocumentParentWindow(A.frames[i]);};
也就是try,catch了一下,就好使了汗