2011-09-12 72 views

回答

0
  1. 都複製管理器文件夾\tinymce\jscripts\tiny_mce\plugins\

  2. 把你的JS文件夾初始化的JavaScript。的tm_init.js內容的例子:

    var tm_c = { 
        script_url : '/js/tinymce/jscripts/tiny_mce/tiny_mce.js', 
        theme : "advanced", 
        plugins : "imagemanager,paste,searchreplace", 
        theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,cut,copy,paste,|,search,replace,|,removeformat,|,insertimage", 
        theme_advanced_buttons2 : "", 
        theme_advanced_buttons3 : "", 
        theme_advanced_buttons4 : "", 
        theme_advanced_toolbar_location : "top", 
        theme_advanced_toolbar_align : "left", 
        theme_advanced_statusbar_location : "bottom", 
        theme_advanced_resizing : false, 
        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" 
    } 
    
  3. 包含此init.jstinimce在HTML

    <script type="text/javascript" src="/js/tinymce/jscripts/tiny_mce/jquery.tinymce.js></script> 
    <script type="text/javascript" src="/js/tm_init.js"></script> 
    
  4. 充分利用textarea TinyMCE的編輯器:

    $("#content").tinymce(tm_c); 
    
+0

THX這麼多回應... 我解決了我的問題。 –