2012-11-18 237 views
1

我想将语言'en'更改为'您'。我从http://www.tinymce.com/i18n/index.php?ctrl=lang&act=download&pr_id=1下载了语言文件夹,并用tinymce \ jscripts \ tiny_mce文件夹替换了它的三个文件夹主题,插件,langs。 然后我已经改变在例如文件夹full.html代码如所提到的:在TinyMCE中更改语言

<!DOCTYPE html> 
<html> 
<head> 

<title>آپ سادہ مرکزی خیال</title> 
<meta charset="utf-8" /> 
<!-- TinyMCE --> 
<script type="text/javascript" src="../jscripts/tiny_mce/tiny_mce.js"></script> 
<script type="text/javascript"> 
    tinyMCE.init({ 
     // General options 
     language : "ur", 
     mode : "textareas", 
     theme : "advanced", 
     plugins : "advhr,advimage,advlink,emotions,fullpage,media,paste,searchreplace,style,table,template,xhtmlxtras", 

其它代码是除了乌尔都语文本相同。

但我的输出不显示工具栏,文本区域。

请说出我做错了什么。

+0

好像你正在做的一切正确的改变语言。不过看起来你的tinyMCE.init脚本没有结束标签。请务必在_plugins_ line –

+0

@ 1.44mb之后放置_}); _标记已关闭 –

回答

1

这些都是可以帮助您的步骤:

  1. 包括jQuery和jquery.tinymce.js文件。
  2. 将您的textarea控制属性class="tinymce"
  3. 在JavaScript:

    $(function(){ 
        $("textarea.tinymce").tinymce({ 
         // Location of TinyMCE script 
         script_url : "js/tiny_mce/tiny_mce.js", 
    
         // General options 
         theme : "advanced", 
         plugins : "safari,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", 
    
         // Example content CSS (should be your site CSS) 
         content_css : "css/style.css", 
    
         // Theme options 
         theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect", 
    
    
        }); 
    });