2013-07-24 90 views
2

我使用TinyMCE的,並希望在西班牙語中顯示它(ES)爲TinyMCE的3.x中設置語言

TinyMCE的版本信息如下

majorVersion : '3', minorVersion : '3.9.2', releaseDate : '2010-09-29'

文檔說下載語言包from here和文件複製到相應的文件夾 :

/tinymce/jscripts/tiny_mce/langs/ 
/tinymce/jscripts/tiny_mce/themes/advanced/langs/ 
/tinymce/jscripts/tiny_mce/plugins/<pluginname>/langs/ 

,還可以設置

tinyMCE.init({ 

     // General options 
     language: 'es', 
     mode: "textareas", 
     theme: "advanced", 
     relative_urls : false, 
     file_browser_callback : ekmUpload, 
     plugins: "safari,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,imagemanager,filemanager", 

     // Theme options 
     theme_advanced_buttons1: "newdocument,save,print,|,code,preview,fullscreen,|,bold,italic,underline,strikethrough,forecolor,backcolor,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontselect,fontsizeselect", 
     theme_advanced_buttons2: "image,template,|,cut,copy,paste,pastetext,pasteword,|,search,|,bullist,numlist,|,sub,sup,|,undo,redo,|,link,unlink,anchor,|,hr,removeformat,", 
     theme_advanced_buttons3: "", 
     theme_advanced_toolbar_location: "top", 
     theme_advanced_toolbar_align: "left", 
     theme_advanced_statusbar_location: "bottom", 
     theme_advanced_resizing: false, 

     content_css : " ", 
     editor_selector: "HTMLEditor", 
     height : '500', 
     width : '100%', 
     convert_urls : false, 

     inline_styles : true, 

     save_enablewhendirty: true, 
     save_onsavecallback: "SaveDocuments", 

這個答案here也給出了相同的建議。

但語言包(zip文件)只包含lang/es.js

有沒有這個,沒有出現在西班牙,「格式」,「FONT-FAMILY」和「字體大小」下拉列表不顯示在西班牙語中。

我在想什麼?

+0

+1很好的問題 – Thariama

回答

1

什麼你donwloaded是TinyMCE的4語言文件,你需要的TinyMCE 3.語言包您將在這裏得到它:http://www.tinymce.com/i18n3x/index.php?ctrl=lang&act=download&pr_id=1

+0

對不起,我已經建立了'''語言: 「ES」,'''我只是複製和粘貼錯誤到的問題。我現在更新了這個問題。任何其他想法? –

+1

你所下載的是tinymce 4的語言文件,你需要設置爲tinymce 3.你會在這裏得到它:http://www.tinymce.com/i18n3x/index.php?ctrl=lang&act=download&pr_id=1 – Thariama

+0

我已經下載了你建議的文件。在應用它們之後,TinyMCE編輯器現在在下拉列表中的所有項目(字體系列,字體大小等)前面添加''''advanced。「'''。仍然不會以西班牙文顯示任何內容。我也再次更新了這個問題,以顯示我的完整TinyMCE配置。任何更多的幫助,將不勝感激。 –