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

index 97c9f84..a181358 100644 (file)
@@ -463,6 +463,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
             'dblclick': this.onEditorEvent,
             'click': this.onEditorEvent,
             'keyup': this.onEditorEvent,
+            'paste': this.onPasteEvent,
             buffer:100,
             scope: this
         });
@@ -490,7 +491,10 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
         this.owner.fireEvent('initialize', this);
         this.pushValue();
     },
-
+    
+    onPasteEvent : function(e,v)  {
+         this.owner.fireEvent('paste', e, v);
+    },
     // private
     onDestroy : function(){