Question

I am using tinymce 4.0.12 in my wicket project, I have a plugin for Indian language like:

PramukhIme and IndicIme in my tinymce plugin folder, but these plugins are created according to the older version of tinymce and new version of tinymce has changed its structure to read its plugin.

My tiny initiation code is:

tinyMCE.init({
                mode : "exact",        
                elements : "textarea",      
                theme : "modern",
                language :"en",
                plugins :pramukhime,
                toolbar1 :"pramukhime,pramukhimeclick,pramukhimeconvert,pramukhimehelp"
});

Is there any way or other plugins according to the new structure of tinymce so that i can use it?

Was it helpful?

Solution

Finally i have done it without using any third party plugin in TinyMCE 4!

Note: Few things you have to keep in mind:

  1. The language works upon the fonts installed in your OS.

  2. Download valid fonts: Indian -> Regional fonts and install it in your OS.

  3. Make sure all the installed fonts are proper and valid and downloaded from a proper source.

If you are using Windows, the installation path would be like this:

C:\Windows\Fonts\

Code:

tinyMCE.init({
                    mode : "exact",        
                    elements : "textarea",      
                    theme : "modern",
                    toolbar: "fontselect",
                 font_formats:"SCiRound=SCiRound;Shonarb=Shonarb;Shonar=Shonar;vrindab=vrindab;Vrinda=Vrinda;Devanagari New=Devanagari New;Kruti Dev=Kruti Dev;Kalpurush ANSI=Kalpurush ANSI;Aruna=Aruna;Haritha=Haritha"

});
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top