在 CKEditor 3.6.2 中,拼写检查在 Windows 7 的浏览器版本 IE 9-11 中不起作用。CKE 以
“此页面无法显示该窗口未从另一个窗口打开。”
我正在使用 aspell 插件进行拼写检查。
谁能帮我摆脱这个
在 CKEditor 3.6.2 中,拼写检查在 Windows 7 的浏览器版本 IE 9-11 中不起作用。CKE 以
“此页面无法显示该窗口未从另一个窗口打开。”
我正在使用 aspell 插件进行拼写检查。
谁能帮我摆脱这个
我很久以前就看到过这个问题,aspell 插件开发人员可能知道这个问题 - 但无论如何,请随时向他们检查这个问题 ;-)
http://ckeditor.com/forums/CKEditor-3.x/Spellchecker-Fails-IE9上最有可能的解决方案
去引用:
davebeyer
在我们的例子中,这最终是从 plugins/aspell/spellerpages/spellchecker.html 复制代码的结果。切换对“opener”的引用(在 IE9 中显然未定义)改为调用 openerWindow()(见下文)解决了我们的问题。guikubivan
在我们的例子中,除了修改 spellchecker.html 之外,我们还必须在 controls.html 中插入一个类似的函数,并再次将对“parent.opener”的引用替换为 openerWindow()fonji
我必须同时进行修改并稍微更改 openerWindow() 代码:
function openerWindow() {
if (opener && opener.speller)
return opener;
if (parent.opener && parent.opener.speller)
return parent.opener;
if (parent.parent && parent.parent.speller)
return parent.parent;
return undefined;
}