execCommand - 特别是InsertImage停止使用IE8升级 [英] execCommand - specifically InsertImage stops working with IE8 upgrade
问题描述
我有一个使用execCommand将图像插入到designMode表面的页面。
这是一个成熟的代码,它(并且确实)与IE7一起工作。 execCommand只返回false。
我已经将我的网站添加到我的可信站点区域,认为这是一个新的安全设置,并且手动调整了几个设置但没有去。
以下是有问题的代码:
<前lang = x-js>函数getImage(){
var Image = showModalDialog(" imagelist.html" ,'','状态:否; dialogWidth:250px; dialogHeight:390px;');
if(Image!= null){
editArea.document.execCommand(" InsertImage",false,Image);
};
editArea.focus();
}
IE8在安装时重置安全区域设置。
检查IE8安全区域设置是否允许"允许编写Microsoft Web浏览器控件的脚本" (Internet区域中默认为"已禁用")。
发牢骚。
I have a page that uses execCommand to insert an image into a designMode surface.
This is mature code that has (and does) work with IE7. The execCommand simply returns false.
I've added my site to my Trusted Sites zone, thinking this is a new security setting, and have tweaked a couple setting manually but no go.
Here is the code in question:
function getImage() {
var Image = showModalDialog("imagelist.html", '', 'status: no; dialogWidth: 250px; dialogHeight: 390px;');
if (Image != null) {
editArea.document.execCommand("InsertImage", false, Image);
};
editArea.focus();
}
Hi,
IE8 resets security zone settings when it is installed.
Check your IE8 Security zone settings for "Allow scripting of the Microsoft web browser control" (default "disabled" in the Internet Zone).
Regards.
这篇关于execCommand - 特别是InsertImage停止使用IE8升级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!