Roo/HtmlEditorCore.js
authorAlan <alan@roojs.com>
Tue, 28 Sep 2021 05:36:55 +0000 (13:36 +0800)
committerAlan <alan@roojs.com>
Tue, 28 Sep 2021 05:36:55 +0000 (13:36 +0800)
roojs-debug.js

Roo/HtmlEditorCore.js

index b0c6e10..97c9f84 100644 (file)
@@ -391,7 +391,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
             if(this.owner.fireEvent('beforepush', this, v) !== false){
                 var d = (this.doc.body || this.doc.documentElement);
                 d.innerHTML = v;
-                this.cleanUpPaste();
+                //this.cleanUpPaste();
                 this.el.dom.value = d.innerHTML;
                 this.owner.fireEvent('push', this, v);
             }
@@ -697,9 +697,9 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
                         cmd = 'underline';
                         break;
                     
-                    case 'v':
-                        this.cleanUpPaste.defer(100, this);
-                        return;
+                    //case 'v':
+                      //  this.cleanUpPaste.defer(100, this);
+                      //  return;
                         
                 }
                 if(cmd){
@@ -735,16 +735,16 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
                         var target = r.parentElement();
                         if(!target || target.tagName.toLowerCase() != 'li'){
                             e.stopEvent();
-                            r.pasteHTML('<br />');
+                            r.pasteHTML('<br/>');
                             r.collapse(false);
                             r.select();
                         }
                     }
                 }
-                if (String.fromCharCode(k).toLowerCase() == 'v') { // paste
-                    this.cleanUpPaste.defer(100, this);
-                    return;
-                }
+                //if (String.fromCharCode(k).toLowerCase() == 'v') { // paste
+                //    this.cleanUpPaste.defer(100, this);
+                //    return;
+                //}
                 
                 
             };
@@ -757,10 +757,10 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
                     this.execCmd('InsertHTML','&#160;&#160;&#160;&#160;');
                     this.deferFocus();
                 }
-                if (String.fromCharCode(k).toLowerCase() == 'v') { // paste
-                    this.cleanUpPaste.defer(100, this);
-                    return;
-                }
+                //if (String.fromCharCode(k).toLowerCase() == 'v') { // paste
+                //    this.cleanUpPaste.defer(100, this);
+                 //   return;
+                //}
                 
             };
         }else if(Roo.isSafari){
@@ -773,10 +773,10 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
                     this.deferFocus();
                     return;
                 }
-               if (String.fromCharCode(k).toLowerCase() == 'v') { // paste
-                    this.cleanUpPaste.defer(100, this);
-                    return;
-                }
+               //if (String.fromCharCode(k).toLowerCase() == 'v') { // paste
+                 //   this.cleanUpPaste.defer(100, this);
+                 //   return;
+               // }
                 
              };
         }
@@ -997,7 +997,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
         // fully contined.
         return 3;
     },
-
+/*
     // private? - in a new class?
     cleanUpPaste :  function()
     {
@@ -1011,7 +1011,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
         }
         
     },
-    
+    */
     cleanWordChars : function(input) {// change the chars to hex code
         var he = Roo.HtmlEditorCore;