【问题标题】:script error in mozilla firefox when i use tinymce editor当我使用 tinymce 编辑器时,Mozilla Firefox 中的脚本错误
【发布时间】:2012-05-17 03:48:09
【问题描述】:

当我使用 tinymce 编辑器时,我收到类似的错误

`此页面上的脚本可能正忙,或者它可能已停止响应。您现在可以停止脚本,在调试器中打开脚本,或者让脚本继续运行。

脚本:http://rapidsurfing.net/site//jscripts/tiny_mce/tiny_mce.js:1`

在 mozilla firefox 浏览器中,我使用此代码获取 tinymce 编辑器

<script type="text/javascript">
tinyMCE.init({
    // General options
    mode : "exact",elements : "ntxtnotefield",
    theme : "advanced",
    plugins : "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",

    // Theme options
    theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",

    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_statusbar_location : "bottom",
    theme_advanced_resizing : true,

    // Example content CSS (should be your site CSS)
    // using false to ensure that the default browser settings are used for best Accessibility
    // ACCESSIBILITY SETTINGS
    content_css : false,
    // Use browser preferred colors for dialogs.
    browser_preferred_colors : true,
    detect_highcontrast : true,

    // Drop lists for link/image/media/template dialogs
    template_external_list_url : "lists/template_list.js",
    external_link_list_url : "lists/link_list.js",
    external_image_list_url : "lists/image_list.js",
    media_external_list_url : "lists/media_list.js",

    // Style formats
    style_formats : [
        {title : 'Bold text', inline : 'b'},
        {title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
        {title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
        {title : 'Example 1', inline : 'span', classes : 'example1'},
        {title : 'Example 2', inline : 'span', classes : 'example2'},
        {title : 'Table styles'},
        {title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}
    ],

    // Replace values for the template plugin
    template_replace_values : {
        username : "Some User",
        staffid : "991234"
    }
});

如果有人知道这是怎么回事,请回复

【问题讨论】:

    标签: firefox tinymce


    【解决方案1】:

    我强烈建议,你设置如下

    plugins : "",
    theme_advanced_buttons1: "",
    

    如果它工作,那么你的插件或按钮配置有错误。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多