【问题标题】:TinyMCE would not load in firefoxTinyMCE 无法在 Firefox 中加载
【发布时间】:2011-06-15 01:20:47
【问题描述】:

下面是我加载 tinymce 的脚本。

<script type="text/javascript" src="../tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript" language="javascript">
        tinyMCE.init({
            mode: "textareas",
            theme: "advanced",
            plugins : "code,table",

            // Theme options - button# indicated the row# only
            theme_advanced_buttons1: "bold,italic,underline,|,justifyleft,justifycenter,justifyright,fontselect,fontsizeselect,|,bullist,numlist,|,link,unlink,anchor,image,tablecontrols,|,forecolor,backcolor,|,sub,sup,|,code",
            theme_advanced_buttons2: "",
            theme_advanced_buttons3: "",
            theme_advanced_font_sizes: "12px,13px,14px,16px,18px,20px",
            theme_advanced_toolbar_location: "top",
            theme_advanced_toolbar_align: "left",
            theme_advanced_resizing: true
        });
</script>

它在 Firefox 中不起作用,但在 IE 中起作用。 在 IE > 开发者工具中,我在 head 部分看到了这个链接

<link href="http://www.xyz.com/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/ui.css" rel="stylesheet"/>  

但在 Firefox 中,使用 Firebug > NET > 我在

处看到 404 错误(红线)
http://www.xyz.com/tinymce/jscripts/tiny_mce/plugins/code/editor_plugin.js

我没有在 tinymce/jscripts/tiny_mce/plugins/ 文件夹下找到 code 文件夹。

非常感谢任何帮助。

谢谢。

【问题讨论】:

    标签: firefox tinymce wysiwyg


    【解决方案1】:

    如果插件目录下没有代码文件夹,则将其从插件列表中删除:

    plugins : "table",
    

    或找到丢失的代码插件。

    【讨论】:

    • 非常感谢罗斯。我选择了第二个选项 :) Plugins 文件夹有 bbcode。我将该文件夹的内容复制到 code 文件夹中,现在它工作得很好!再次感谢您为我指明正确的方向。
    • 但仍然想知道它在 IE 中如何工作,但在 FF 中却没有代码文件夹!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-07
    相关资源
    最近更新 更多