Write in 9 Indian Scripts in Drupal 6 using TinyMCE and FCKEditor Plugin

Note: This article is very old. This tutorial cannot be used for current version of software available at https://www.pramukhime.com

Here is a procedure on how to enable Drupal 6 to write in Indian language Bengali / Gujarati / Hindi / Marathi / Sanskrit / Kannada / Malayalam / Oriya / Punjabi / Tamil and Telugu.

Prerequisite

  1. Download Wysiwyg project and install it at WEBROOT\sites\all\modules\wysiwyg. Enable this module by navigating to Administer > Site Building > Modules.
  2. Download TinyMCE / FCKEditor and install it at WEBROOT\sites\all\libraries\tinymce(/fckeditor).

There are two ways to enable Drupal 6 to allow user to type in Indian scripts.

  1. Using TinyMCE
  2. Using FCKEditor

Both are equally capable with almost same functionality but it is just a matter of personal choice which one to use.

Using FCKEditor

Download IndicIME plugin for FCKEditor and put it at WEBROOT\sites\all\libraries\fckeditor\editor\plugins so that “indicime” will become sub-folder of plugins

Open the file WEBROOT\sites\all\modules\wysiwyg\editors\fckeditor.inc in text editor

Copy/paste following code at the very bottom in the function wysiwyg_fckeditor_plugins.

'indicime' => array(
      'path' => $editor['library path'] . '/editor/plugins',
      'buttons' => array(
        'indicime' => t('IndicIME'),
        'indicimehelp' => t('IndicIME Help'),
      ),
      'options' => array (
        'IndicIMEScripts' => t('My Bengali:bengali;My Gujarati:gujarati;My Devanagari:devanagari;English (F12):english'),
      ),
      'internal' => TRUE,
      'load' => TRUE,
    ),

If you want all scripts to be shown, remove “options” line from the above code. “options” is given to show you easy customization of list.

Now navigate to Administer > Site Configuration > Wysiwyg.

For “Filtered HTML” and “Full HTML” input format, select “FCKEditor” and “Save”.

After saving, you will be shown an option for “Edit” for each input format.

CKEditor Input format

Click on “Edit” and open section “Buttons and Plugins”. Select “IndicIME” and “IndicIME Help” button for both input format and “Save”.

CKEditor Indic IME buttons

Now navigate to Create Content > Page, you will get Indic IME drop down box for choosing language and help button to show keyboard.

CKEditor with Indic IME

Enjoy typing in your own language.

Using TinyMCE

Download IndicIME plugin for TinyMCE and put it at WEBROOT\sites\all\libraries\tinymce\jscripts\tiny_mce\plugins so that “indicime” will become sub-folder of plugins

Open the file WEBROOT\sites\all\modules\wysiwyg\editors\tinymce.inc in text editor

Copy/paste following code at the very bottom in the function wysiwyg_tinymce_plugins.

'indicime' => array(
        'path' => $editor['library path'] .'/plugins/indicime',
        'buttons' => array(
          'indicime' => t('IndicIME'),
          'indicimehelp' => t('IndicIME Help')
        ),
        'options' => array (
          'indicime_scripts' => t('My Bengali:bengali;My Gujarati:gujarati;My Devanagari:devanagari;English (F12):english')
        ),
        'internal' => TRUE,
        'load' => TRUE,
         ),

If you want all scripts to be shown, remove “options” line from the above code. “options” is given to show you easy customization of list.

Now navigate to Administer > Site Configuration > Wysiwyg.

For “Filtered HTML” and “Full HTML” input format, select “TinyMCE” and “Save”.

After saving, you will be shown an option for “Edit” for each input format.

TinyMCE Input Format

Click on “Edit” and open section “Buttons and Plugins”. Select “IndicIME” and “IndicIME Help” button for both input format and “Save”.

CKEditor Indic IME buttons

Now navigate to Create Content > Page, you will get Indic IME drop down box for choosing language and help button to show keyboard.

TinyMCE with Indic IME

Enjoy typing in your own language.

Update 4th Jan, 2009

I have added code to customize the list of scripts for TinyMCE and FCKEditor. Thanks to Ramana.

Share

11 comments

Your email address will not be published. Required fields are marked *

  1. puneet says:

    hi friend ,

    yaar i m so confuesd yaar for hindi typing i did not get any file which give top
    please yaar explain me how i install hindin languet in fckeditor

  2. HI says:

    Thanks . it’s lot of help for drupal editor.

  3. Ashraful Haque says:

    Hi
    Thank you for quick reply over mail.
    I have done it As per this article/blog.
    When I activate those two button then all my button disappear including your button. But when I deactivate those button tinymce work well and all button appears. What is the problem.
    I m using drupal 6.20 and tinymce 3.4.1.
    Thank you

  4. Vinayak Anivase says:

    I like what you have done with it. This is a great module.
    Keep up the good work.

    i have a question. How could i enable it for the whole site. The gamabhana module takes input id’s to be enable. So a user can even search in the default (enabled) language what this module isn’t doing right know. How should i do it?

    Any help will be appreciated.

  5. vinayak anivase says:

    There is another module for typing in indic languages called GaMaBhaNa. you can get it by visiting this site: http://www.gamabhana.com
    Awesome module. We are using it on our 3 marathi websites.

  6. Ronnjoe says:

    Hi Vishal!!!!
    Thank u very much man…. U have done a very good job.
    My problem is fully solved.

    Thanks a lot for this tutorial.

  7. Ramana says:

    @Vishal
    Thanks for the quick update Vishal.

    You done a great job.
    🙂

  8. Vishal says:

    @Ramana
    That is a nice question for me. I will figure it out and update the post.

  9. Ramana says:

    Thanks Vishal.

    How can I limit the Languages and how to set default language selected.

    Once again Thanks…………..

  10. rhon says:

    WOW! This has been very fast response, and thanks for the replies to the mails also.
    This is a very helpful tutorial/blog and very clearly states what to do.
    The problems are solved.
    A small, non-urgent, and minor request (only when you have time) please add a paragraph on how to have an icon for the ‘Indic Script’ instead of the text just like the help icon. Since all other tools are reprsented by icons it will be nice 🙂
    Once again, so many thanks.