1

我在使用TinyMCE時遇到問題。在IE8中,出於某種隨機原因,前景色和背景色會顯示兩次。TinyMCE:雙前景色和背景色按鈕?

請參見下圖。

TinyMCE http://img27.yfrog.com/img27/7325/tinymcedoubleforecolorb.jpg

的源代碼(我添加了前景色和背景色在theme_advanced_buttons2):

tinyMCE.init({ 
mode : "exact", 
elements : "<%= editArea.ClientID %>", 
custom_shortcuts : false, 
language : "en", 

relative_urls : false, 
convert_urls : false, 

forced_root_block : false, 
force_p_newlines : true, 
force_br_newlines : false, 

fix_nesting : true,   

plugins : "pagebreak,table", 
pagebreak_separator : '<div style="page-break-after:always;"></div>', 

theme : "advanced", 
skin : "o2k7", 
skin_variant : "blue", 

width : "540", 
height : "470", 
theme_advanced_toolbar_location : "top", 
theme_advanced_statusbar_location : "none", 

theme_advanced_font_sizes : "1,2,3,4,5,6,7", 
font_size_style_values : "0.6em,0.8em,1em,1.2em,1.5em,2em,3em", 

theme_advanced_buttons1 : "newdocument,|,copy,cut,paste,|,hr,pagebreak,|,undo,redo,|,code|,image,code", 
theme_advanced_buttons2 : "fontselect,fontsizeselect,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,forecolor,backcolor", // <-- This gives me double forecolor and backcolor 
theme_advanced_buttons3 : "table,|,row_props,cell_props,|,col_before,col_after,row_before,row_after,|,split_cells,merge_cells,|,delete_col,delete_row," 
}); 

回答

0

在單獨的按鈕主題把這兩樣,它應該解決您的問題。

這是一個瘋狂的猜測,但我在MS-Word中檢查它& Open Office他們把它作爲單獨的主題。

0

TinyMCE 3.2.2版包含更新日誌備註:
修復了IE 8會錯誤顯示colorpicker/filepicker圖標的問題。

我當然沒有看到這個問題發生在最新版本的TinyMCE上,所以也許你只需要升級?

問候,

阿德里安·薩頓
http://tinymce.ephox.com