Roo/HtmlEditorCore.js
[roojs1] / 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(){