【发布时间】:2010-04-02 14:56:24
【问题描述】:
我无法让 tinyMCE 在 IE6 上使用新的 jQuery 1.4.2。在我的项目中,我们一直在使用 tinyMCE,jQuery 1.3.2 没有问题。但是现在升级带来了一个奇怪的问题。每当我单击工具栏中的任何按钮(无论是自定义按钮还是标准按钮,如粗体、斜体)时,IE6 都会触发一个卸载事件,并被此函数捕获:
window.onbeforeunload = function() {
alert("bad mce!");
// normally used for a blockUI "loading new page" message
}
除了旧版本的 tinyMCE 之外,我在最新版本的 tinyMCE 3.3.2 上也发现了同样的问题。我的 tinyMCE 初始化非常基本......
function initTinyMCE() {
tinyMCE.init({
mode: "specific_textareas",
theme: "advanced",
skin: "o2k7",
editor_selector: "mceSimple",
theme_advanced_buttons1: "bold,italic,underline,separator,bullist,backcolor,forecolor,undo,redo",
theme_advanced_buttons2: "",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
onchange_callback: "NoteChanged",
width: "100%",
height: "520",
});
}
这在 Firefox 中当然可以正常工作(不幸的是,目标浏览器是 IE6 (boo))。如果我恢复到 jquery 1.3.2,问题就会在 IE6 中消失。有谁知道是什么原因造成的?
【问题讨论】:
标签: javascript jquery internet-explorer-6 tinymce upgrade