惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Hacker News: Ask HN
Hacker News: Ask HN
D
DataBreaches.Net
Microsoft Security Blog
Microsoft Security Blog
U
Unit 42
V
Visual Studio Blog
GbyAI
GbyAI
云风的 BLOG
云风的 BLOG
博客园 - Franky
C
CXSECURITY Database RSS Feed - CXSecurity.com
大猫的无限游戏
大猫的无限游戏
P
Privacy & Cybersecurity Law Blog
T
The Exploit Database - CXSecurity.com
Simon Willison's Weblog
Simon Willison's Weblog
L
LangChain Blog
I
Intezer
V2EX - 技术
V2EX - 技术
Google DeepMind News
Google DeepMind News
T
Threat Research - Cisco Blogs
Apple Machine Learning Research
Apple Machine Learning Research
V
V2EX
腾讯CDC
博客园 - 【当耐特】
Know Your Adversary
Know Your Adversary
TaoSecurity Blog
TaoSecurity Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
F
Fortinet All Blogs
Project Zero
Project Zero
Blog — PlanetScale
Blog — PlanetScale
S
Security @ Cisco Blogs
量子位
M
MIT News - Artificial intelligence
美团技术团队
C
Cisco Blogs
S
Schneier on Security
Recent Commits to openclaw:main
Recent Commits to openclaw:main
G
Google Developers Blog
N
News and Events Feed by Topic
MongoDB | Blog
MongoDB | Blog
The Hacker News
The Hacker News
H
Help Net Security
S
Secure Thoughts
Scott Helme
Scott Helme
SecWiki News
SecWiki News
T
Troy Hunt's Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - 叶小钗
O
OpenAI News
Application and Cybersecurity Blog
Application and Cybersecurity Blog
博客园 - 司徒正美
T
Tenable Blog

博客园 - 流浪浪

使用递归的方法生产TreeView SQL截取字符串 SQL Server中各个系统表的作用 asp.net DataList中hyperlink传递参数及打开新页面全解 vs2005 c#鼠标悬停高亮显示在gridview中 li:hover ul,li.over ul{ display: block;}这句被ie6.0解释不了 CSS + JavaScript 利用display:none/block 构造弹出菜单 23种设计模式的通俗理解 myeclipse9.0破解方法 C#弹出选择对话框的程序 sql语句中调用将汉字转换为拼音函数 sql将汉字首字转化为拼音 “IE7中Frameset页面显示不全”问题的原因与解决方案 (转) sql语句获取本周、本月数据 解决gridview导出到excel中汉字出现乱码的问题 - 流浪浪 - 博客园 (转)IT人士群聚喝酒 Better Man 倒春寒 恨铁不成钢啊!
editor.js 缺少对象的解决方法(ewebeditor 使用)
流浪浪 · 2011-12-12 · via 博客园 - 流浪浪

IE浏览器升级到IE8.0,在使用eWebEditor在线HTML文本编辑器的时候出问题,点击eWebEditor上的所有编辑按钮都没用,只看到浏览器状态栏左下角显示网页上有错误字样。看来eWebEditor真的是很脆弱啊,先是漏洞百出,Firefox不支持,现在IE8也不支持了,真的很郁闷,不过还好,经过研究,问题最终得到了解决。

        一、解决IE8不支持eWebEditor在线文本编辑器的方法如下:
        1、首先找到eWebEditor编辑器所在的目录,然后搜索到editor.js文件,由于eWebEditor有很多个版本,所以editor.js文件所在的目录也有所不同,有的可能在Include目录下,有的可能在js目录下。
        2、用记事本打开editor.js文件,找到如下代码:
if (element.YUSERONCLICK) {
    eval(element.YUSERONCLICK + "anonymous()");
}
        由于eWebEditor编辑器版本不同,有的可能找不到上面的代码,而是下面这样的代码,两种代码只是书写格式不同而已,含义是一样的:
if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()");
   
        3、将上面的代码替换为下面的代码即可:
if(navigator.appVersion.match(/8./i)=='8.')
    {
      if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "onclick(event)");  
   }
else
   {
     if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()");
}
另:这个方法来自网上转载,我用上面方法修改几个确实是可行的,代Ewebeidtor团队谢谢原创作者哈。不管怎么说IE8真TMD不好用,我玩黑上传时抓包工具在IE8下抓不到数据,而且我的电脑还总是出现IE报错。操NND!
 
        二、如果IE7也不支持你就加下面这个代码:
if(navigator.appVersion.match(/8./i)=='8.' || navigator.appVersion.match(/7./i)=='7.'){
  if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "onclick(event)"); //IE8 or IE7
} else {
  if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()"); //IE6
}
 
        三、如果傲游[Maxthon]也不支持那怎么办?那你继续往下看呗:
if(navigator.appVersion.match(/8./i)=='8.' || navigator.appVersion.match(/MAXTHON/i)=='MAXTHON'){
    if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "onclick(event)");
}else{
    if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()");

}