fix typo in docs
[roojs1] / Roo / form / HtmlEditor.js
index 0d0ba7c..a6baf6f 100644 (file)
@@ -101,7 +101,7 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
      */
     autoClean: true,
     /**
-     * @cfg {string} bodyCls- default '' default classes to add to body of editable area - usually undoreset is a good start..
+     * @cfg {string} bodyCls default '' default classes to add to body of editable area - usually undoreset is a good start..
      */
     bodyCls : '',
     /**
@@ -554,7 +554,17 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
         this.editorcore.pushValue();
     },
 
+    /**
+     * update the language in the body - really done by core
+     * @param {String} language - eg. en / ar / zh-CN etc..
+     */
+    updateLanguage : function(lang)
+    {
+        this.language = lang;
+        this.editorcore.language = lang;
+        this.editorcore.updateLanguage();
      
+    },
     // private
     deferFocus : function(){
         this.focus.defer(10, this);