2012-05-17 57 views
0

當我使用TinyMCE的編輯,我得到這樣腳本錯誤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" 
    } 
}); 

如果任何人知道這是如何發生的,請回復

回答

0

我強烈建議您設置如下

plugins : "", 
theme_advanced_buttons1: "", 

如果它工作,那麼你的插件或按鈕配置有錯誤。