【问题标题】:IE is not able to display tinymce iconsIE 无法显示 tinymce 图标
【发布时间】:2010-06-23 09:02:27
【问题描述】:

我的代码无法显示 tinymce 图标...下面是我的代码

tinymceSettings: {
        theme : "advanced",
        tinymcePlugins: "style,paste,directionality,advimage,advlink",
        theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,|,fontselect,fontsizeselect,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,forecolor,backcolor",
    theme_advanced_buttons2 : "",
        theme_advanced_buttons3 : "",
        theme_advanced_toolbar_location : "top",
        theme_advanced_toolbar_align : "left"
        //theme_advanced_statusbar_location : "bottom"
    extended_valid_elements :"a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],font[face|size|color|style]"
}

请帮帮我

【问题讨论】:

  • 欢迎来到 SO。请添加更多信息。你能展示一下它的屏幕截图吗?它在 FF 中有效吗?
  • 会不会是图标没有上传,或者放错地方了?

标签: javascript internet-explorer tinymce


【解决方案1】:

欢迎来到 SO!

问题出在按钮界面的定义上。当您应该使用 separator 来执行此操作时,您正在使用 | 来指示分隔符。

将行改为:

theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,justifyleft,justifycenter,justifyright,separator,fontselect,fontsizeselect,separator,bullist,numlist,separator,outdent,indent,separator,undo,redo,separator,forecolor,backcolor",

如果您愿意,可以在此处浏览有关 theme_advanced_buttons1 的文档。 http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/theme_advanced_buttons_1_n

【讨论】:

    猜你喜欢
    • 2021-05-19
    • 2019-04-18
    • 2010-11-05
    • 1970-01-01
    • 1970-01-01
    • 2020-08-24
    • 2019-02-01
    • 1970-01-01
    • 2014-10-15
    相关资源
    最近更新 更多