Roo/HtmlEditorCore.js
authorAlan <alan@roojs.com>
Mon, 3 Jan 2022 06:53:02 +0000 (14:53 +0800)
committerAlan <alan@roojs.com>
Mon, 3 Jan 2022 06:53:02 +0000 (14:53 +0800)
Roo/HtmlEditorCore.js

index 9689931..78f3e14 100644 (file)
@@ -123,6 +123,11 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
      * 
      */
     stylesheets: false,
+     /**
+     * @cfg {String} language default en - language of text (usefull for rtl languages)
+     * 
+     */
+    language: false,
     
     /**
      * @cfg {boolean} allowComments - default false - allow comments in HTML source
@@ -1425,6 +1430,13 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
         
     },
     
+    
+    updateLanguage : function()
+    {
+        Roo.get(_this.ifream.content.body).attr("lang", this.lang);
+    },
+    
+    
     removeStylesheets : function()
     {
         var _this = this;