Search code examples
javascriptrichtextboxrichtexttransliterationgoogle-closure-library

Google Transliteration in Rich Text Editor


I need to use Google Transliteration along with rich-text editing support.

The Google Transliteration API docs recommend the rich text-editor offered by Closure library or Yahoo! UI Library.

But, I tried both of them and the transliteration does not work.

Anybody who has implemented a rich-text editor which supports transliteration as well?

[Edit: Answer updated below]


Solution

  • The WYSIWIG editor that comes with Textile Markup works well with Google Transliteration API :)

    Install the acts_as_textiled plugin

    rails plugin install https://github.com/defunkt/acts_as_textiled.git
    

    and then install textile_editor_helper

    rails plugin install http://svn.webtest.wvu.edu/repos/rails/plugins/textile_editor_helper
    

    Then, you should be able to integrate the WYSIWIG editor in your views. For, MarkitUp fans, equivalent plugins are available too ;)

    Refer this article for further info. The article explains the editor integration, but the links are outdated, so refer above for the latest sources.