TinyMCE Localization: Using Language in TinyMCE Editor

Last Reply 9 months ago By Mudassar

Posted 10 months ago

please solve my problem client requirements integration google hindi input tools....

    <script type="text/javascript">
        tinyMCE.init({
            mode: "textareas",
            theme: "advanced",
            //language: "hi",
            language: 'hi',
            media_live_embeds: true,
            plugins: "safari,spellchecker,style,layer,table,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,media,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,youtubeIframe",
            theme_advanced_buttons1: "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect",
            theme_advanced_buttons2: "cut,copy,paste,pastetext,pasteword,|bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,insertdate,inserttime,preview,|,forecolor,backcolor",
            theme_advanced_buttons3: "hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,youtubeIframe,advhr,|,ltr,rtl,|,fullscreen",
            theme_advanced_buttons4: "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage",
          content_css: "css/custom_content.css",
//            theme_advanced_font_sizes: "10px,12px,13px,14px,16px,18px,20px",
//            font_size_style_values: "10px,12px,13px,14px,16px,18px,20px"//,

       theme_advanced_toolbar_location: "top",
            theme_advanced_toolbar_align: "left",
            theme_advanced_statusbar_location: "bottom",
            theme_advanced_resizing: false,
            template_external_list_url: "js/template_list.js",
            external_link_list_url: "js/link_list.js",
            external_image_list_url: "js/image_list.js",
            media_external_list_url: "js/media_list.js",
            height: 600,
             content_style: "div, p { font-size: 15px; }",
            extended_valid_elements: "object[width|height|classid|codebase],param[name|value],embed[src|type|width|height|flashva"//,
         //content_css : "http://www.myserver.com/css/content.css"

        });
    </script>

 


Posted 9 months ago

1. Download the Language Pack from here.

https://www.tinymce.com/docs/configure/localization/

2. Then save it in a folder name Langs.

3. Reference the Language in your Editor.

<script type = "text/javascript" src="https://tinymce.cachefly.net/4.0/tinymce.min.js"></script>
<script type="text/javascript">
    tinymce.init({
        selector: 'textarea',
        language_url: 'langs/fr_FR.js',
        language: 'fr_FR',
        width: 500
    });
</script>
<textarea>Your content here.</textarea>

Screenshot