dongpian2559 2012-11-18 12:35
浏览 106
已采纳

改变TinyMCE中的语言

I want to change language 'en' to 'ur'. i had downloaded language folder from http://www.tinymce.com/i18n/index.php?ctrl=lang&act=download&pr_id=1, and replaced its three folders themes, plugins, langs by tinymce\jscripts\tiny_mce folders. and then i had changed full.html code in example folder as mentioned:

<!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",

other code is same except for urdu text.

but my output is not showing toolbar, text area.

Please tell what i'm doing wrong.

  • 写回答

1条回答 默认 最新

  • douzhuang2016 2012-11-18 15:02
    关注

    These are the steps which might help you:

    1. Include jQuery and jquery.tinymce.js file.
    2. Assign your textarea control the attribute class="tinymce"
    3. In 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",
      
      
          });
      });
      
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 目详情-五一模拟赛详情页
  • ¥15 有了解d3和topogram.js库的吗?有偿请教
  • ¥100 任意维数的K均值聚类
  • ¥15 stamps做sbas-insar,时序沉降图怎么画
  • ¥15 unity第一人称射击小游戏,有demo,在原脚本的基础上进行修改以达到要求
  • ¥15 买了个传感器,根据商家发的代码和步骤使用但是代码报错了不会改,有没有人可以看看
  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b