Knowledge.ToString()

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

Comments

12 responses to “Write in 9 Indian Scripts in Drupal 6 using TinyMCE and FCKEditor Plugin”

  1. somesh Avatar
    somesh

    how to write hindi language now,as of this post was written in 2010 i guess,so is there any good option for now

  2. puneet Avatar
    puneet

    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

    1. Vishal Avatar
      Vishal

      Puneet,

      If you are trying to get Hindi working in FCKEDitor, please download IndicIME plugin for FCKEditor . If you still have a problem, Contact Me by Email

  3. HI Avatar
    HI

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

  4. Ashraful Haque Avatar
    Ashraful Haque

    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

  5. Vinayak Anivase Avatar
    Vinayak Anivase

    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.

  6. vinayak anivase Avatar
    vinayak anivase

    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.

  7. Ronnjoe Avatar
    Ronnjoe

    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.

  8. Ramana Avatar
    Ramana

    @Vishal
    Thanks for the quick update Vishal.

    You done a great job.
    🙂

  9. Vishal Avatar
    Vishal

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

  10. Ramana Avatar
    Ramana

    Thanks Vishal.

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

    Once again Thanks…………..

  11. rhon Avatar
    rhon

    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.

Leave a Reply

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