【问题标题】:TinyMCE: Double forecolor and backcolor buttons?TinyMCE:双前色和背景色按钮?
【发布时间】:2009-09-02 11:31:24
【问题描述】:

我在使用 TinyMCE 时遇到问题。在 IE8 中,由于某种随机原因,前景色和背景色会显示两次。

见下图。

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

【问题讨论】:

    标签: asp.net javascript internet-explorer internet-explorer-8 tinymce


    【解决方案1】:

    将这两个放在单独的按钮主题中,它应该可以解决您的问题。

    这是一个疯狂的猜测,但我在 MS-Word 和 Open Office 中检查了它,它们也将它作为单独的主题。

    【讨论】:

      【解决方案2】:

      TinyMCE 3.2.2 版包含变更日志说明:
      修复了 IE 8 会错误地呈现颜色选择器/文件选择器图标的错误。

      我当然没有看到最新版本的 TinyMCE 出现此问题,所以也许您只需要升级?

      问候,

      阿德里安·萨顿
      http://tinymce.ephox.com

      【讨论】:

        猜你喜欢
        • 2013-10-15
        • 2013-06-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-01-01
        • 2020-08-19
        • 2013-08-06
        • 2021-08-10
        相关资源
        最近更新 更多