1

Im working with a web app and i used the latest version of tinyMCE as editor on the backend.. everything looks fine except with the template preview on IE..

is there anyone who encounter or has a fix for this??

THanks in advance.

here is my code

   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);
    }); 
}

});

4

1 回答 1

0

将您的代码添加到此处。如果代码在 FF&chrome 中运行良好,我猜你可能会留下尾随逗号

于 2012-05-16T09:20:56.490 回答