Tuesday, April 17, 2007

How-To: Integrate सलेटी with IndicJoomla!

How-To: Integrate सलेटी with IndicJoomla! छापें ई-मेल
This article will outline steps to integrate सलेटी with IndicJoomla!.
  • Grab सलेटी from IndicJoomla.org
  • Unzip the hindi.zip you downloaded.
  • It will create a directory structure that looks like

           -hindi |

                    |-images

                    |-jscript

                    |-css

                    |-editor_plugin.js

                    |-editor_plugin_src.js

                    |-popup.htm

                    |- readme.txt

  • Copy the base "hindi" folder in <joomla_home_on_your_webserver>/mambots/editors/tinymce/jscripts/tiny_mce/plugins
  • Now, find a file by name tinymce.php at <joomla_home_on_your_webserver>/mambots/editors/ and open it in any text editor you are confortable in.
  • At line ~50 you will see where all the plugins are initialised. It is marked by // Plugins. Somewhere here add the following lines to initialise सलेटी

                 //Devanagari Keyboard
                 $hindi   = $params->def( 'hindi', 1 );

  • Now, we need to add the सलेटी button to the TinyMCE GUI. If you scroll down the file, you will see that the plugins are being added to the GUI in an if statements. At the bottom add following if statement to add सलेटी button to the TinyMCE GUI.

                             if ( $hindi ) {
                               $plugins[] = 'hindi';
                               $buttons3[] = 'separator,hindi';
                             }

  • That's about it. Save tinymce.php file and now you should see सलेटी button in all instances of TinyMCE in IndicJoomla!.

1 comment:

  1. Thanks for this tutorial. I am trying to make the Saleti plugin work with a Drupal Installation (TinyMCE module). Could you please guide me on how to go about it. I already tried a few tricks but they dont seem to work at all.

    Thanks!

    ReplyDelete