Localize the jHtmlArea Editor

By default, the text for all jHtmlArea toolbar buttons is in English. If you need to localize the editor to a different language, you can set the text to use for each toolbar button (reference them each by name) using the "toolbarText" option when creating the editor.

Here's a simple example that localizes the "bold", "italic" and "underline" tooblar buttons to German:
$("textarea").htmlarea({
    toolbarText: $.extend({}, jHtmlArea.defaultOptions.toolbarText, {
        "bold": "fett",
        "italic": "kursiv",
        "underline": "unterstreichen"
    })
});

A global override / localization of jHtmlArea can be performed by overwriting the "jHtmlArea.defaultOptions.toolbarText" variable if necessary.

Last edited May 5, 2012 at 9:23 PM by crpietschmann, version 1

Comments

shijh Nov 18, 2013 at 3:59 PM 
I added a line
loaded: function(){}
then, it worked fine (chrome on macos).
$("textarea").htmlarea({
toolbarText: $.extend({}, jHtmlArea.defaultOptions.toolbarText, {
"bold": "fett",
"italic": "kursiv",
"underline": "unterstreichen"
}),
loaded: function(){}
});