2012-01-24 117 views
0

我一直在努力使tinyMCE在我的頁面上工作。甚至像下面一個簡單的例子不工作..我在所有的瀏覽器都試過..tinyMCE不加載

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr"> 
<head> 
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
    <title>index page</title> 
</head> 
<body> 
    <script type="text/javascript" src="javascripts/tinymce/jscripts/tiny_mce/tiny_mce.js" > 
    </script> 
     <script 
     type = "text/javascript" > 
     tinyMCE.init({ 
      mode : "textareas", 
      theme : "simple", 
      plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template" 
     }); 
    </script> 

    <form method="post" action="somePage.php"> 
     <textarea name="textAreaContent" style="width:100%"> 
    This is some content that will be editable with TinyMCE. 
    </textarea> 
    <br /> 
    <button type="submit">Submit</button> 
    </form> 
</body> 

我檢查了鏈接,javascript和TAT是完美的。 可以有一個人請幫助我...

+1

什麼意思「不工作「? TinyMCE不會初始化?你只有文本在裏面textarea?或者它不是以你認爲的方式進行初始化?或者你得到錯誤?我已經測試了3.3.9和3.4.7版本(Firefox 9,IE 8)的例子,並且一切正常。你使用哪個版本? – BartekR

+0

嘗試初始化沒有任何插件(插件:'',),看看是否有幫助 – Thariama

回答

0

你的代碼是正確的,我只是用3.4.7版本測試, 尋找在缺少插件:JavaScript的/ TinyMCE的/ jscripts/tiny_mce /插件

+0

我有插件文件夾。我也嘗試刪除所有插件。我只是想<腳本類型= 「文本/ JavaScript的」 SRC = 「JavaScript的/ TinyMCE的/ jscripts/tiny_mce/tiny_mce.js」> \t \t \t \t \t \t <腳本 \t \t \t類型= 「文本/ JavaScript的」 > \t \t \t tinyMCE.init({ \t \t \t \t模式: 「文本域」, \t \t \t \t主題: 「簡單」 \t \t \t \t}); \t \t甚至沒有工作 –