TinyMCE预览不适用于IE 8和IE 7

时间:2012-05-16 08:53:12

标签: jquery tinymce

我正在使用网络应用程序,我在后端使用最新版本的tinyMCE作为编辑器。 一切看起来都不错,除了IE上的模板预览..

是否有人遇到过或者已经解决了这个问题?

提前谢谢。

这是我的代码

   tinyMCE.init({
// General options
mode : "textareas",
theme : "advanced",
plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist",

// Theme options
theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_resizing : true,

// Skin options
skin : "o2k7",
skin_variant : "silver",

// Drop lists for link/image/media/template dialogs
template_external_list_url : "../../js/tiny_mce/plugins/template/template_list_2.php",
external_link_list_url : "js/link_list.js",
external_image_list_url : "js/image_list.js",
media_external_list_url : "js/media_list.js",

editor_selector : "htmlEditor",
convert_urls : false,
width : "100%",
height: "500px",

init_instance_callback : function() { 
    $('.mceToolbar a').each(function(item){
        $(this).attr('tabindex', -1);
    }); 
}

});

1 个答案:

答案 0 :(得分:0)

将您的代码添加到此处。 如果代码在FF& chrome中正常工作,我想你可能会留下尾随逗号