Goodmoring,TinyMCE更改語言
今天我在我的定製CMS上安裝了TinyMCE。 現在我想把語言改成荷蘭語,我的整個tinyMCE文本框就會消失。
我已經將荷蘭文件上傳到TinyMCE指定的位置。當我不添加語言:「nl」,行到我的TinyMCE JavaScript它將工作(語言是英語)。但是當我添加該行時,整個文本框從我的頁面中消失。
這是我的代碼
<script type="text/javascript" src="jscripts/tiny_mce/jquery.tinymce.js"></script>
<script type="text/javascript">
$().ready(function() {
$('textarea.tinymce').tinymce({
// Location of TinyMCE script
script_url : 'jscripts/tiny_mce/tiny_mce.js',
// General options
theme : "advanced",
relative_urls : false,
plugins : "youtubeIframe,jbimages,autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,images,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist,jbimages",
// Theme options
theme_advanced_buttons1 : "code,preview,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect",
theme_advanced_buttons2 : "cut,copy,paste,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,|,insertdate,inserttime",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,youtubeIframe,jbimages,advhr,|,print,|,ltr,rtl,|,fullscreen",
//COMPLETE LIJST VAN FUNCTIES
//theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
//theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
//theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
//theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
language : "nl",
// Example content CSS (should be your site CSS)
content_css : "css/style.css",
// 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",
// Replace values for the template plugin
template_replace_values : {
username : "Some User",
staffid : "991234",
width : "858"
}
});
});
</script>
<!-- /TinyMCE -->
我試圖把在其他地方的線,但沒有什麼幫助。
有沒有人想法解決這個問題,我真的需要荷蘭語。
PS。我正在使用jQuery版本的TinyMCE
不,我已經嘗試將nl文件重命名爲en.js en更改了文件內部的兩個字母。但現在什麼都沒有出現。我現在唯一看到的是print.print_desc而不是打印或打印。
您是否查看了語言支持的文檔? http://www.tinymce.com/wiki.php/Language –
是的,我做到了。但他們在這裏討論tinyMCE.init({但是在我的代碼中(從TinyMCE網站複製)他們使用$()。ready(function(){('textarea.tinymce')。tinymce({。 I不知道這是否會導致此問題? – Roy
您是否在langs文件夾中隨附en.js – yb007