我正在使用TinyMCE并希望以西班牙语显示它
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”和“font-size”下拉菜单不会出现在西班牙语中。
我缺少什么?
答案 0 :(得分:1)
你下载的是tinymce 4的语言文件,你需要tinymce 3的语言包。你可以在这里得到它:http://www.tinymce.com/i18n3x/index.php?ctrl=lang&act=download&pr_id=1
答案 1 :(得分:0)
请参阅:http://www.tinymce.com/wiki.php/Configuration:language
示例......
tinymce.init({ ... 语言:“sv_SE” ... });
你有:语言:'es',