Roo/HtmlEditorCore.js
authorAlan <alan@roojs.com>
Thu, 6 Jan 2022 07:02:29 +0000 (15:02 +0800)
committerAlan <alan@roojs.com>
Thu, 6 Jan 2022 07:02:29 +0000 (15:02 +0800)
Roo/HtmlEditorCore.js

index 86cedca..e7e1a67 100644 (file)
@@ -510,7 +510,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
         dbody.bgProperties = 'fixed'; // ie
         //Roo.DomHelper.applyStyles(dbody, ss);
         Roo.EventManager.on(this.doc, {
-            //'mousedown': this.onEditorEvent,
+            'mousedown': this.onMouseDown,
             'mouseup': this.onEditorEvent,
             'dblclick': this.onEditorEvent,
             'click': this.onEditorEvent,
@@ -1434,10 +1434,10 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
     
     updateLanguage : function()
     {
-        if (!this.iframe || !this.iframe.content) {
+        if (!this.iframe || !this.iframe.contentDocument) {
             return;
         }
-        Roo.get(this.iframe.content.body).attr("lang", this.language);
+        Roo.get(this.iframe.contentDocument.body).attr("lang", this.language);
     },