Changed Roo/form/HtmlEditor.js
authorAlan <alan@roojs.com>
Fri, 17 Feb 2023 04:40:34 +0000 (12:40 +0800)
committerAlan <alan@roojs.com>
Fri, 17 Feb 2023 04:40:34 +0000 (12:40 +0800)
Roo/form/HtmlEditor.js

index a6baf6f..ce3bcf4 100644 (file)
@@ -221,7 +221,19 @@ Roo.extend(Roo.form.HtmlEditor, Roo.form.Field, {
             * Fires when press user pastes into the editor
             * @param {Roo.HtmlEditorCore} this
             */
-            paste: true 
+            paste: true,
+             /**
+            * @event imageadd
+            * Fires when on any editor when an image is added (excluding paste)
+            * @param {Roo.HtmlEditorCore} this
+            */
+           imageadd: true ,
+            /**
+            * @event imagedelete
+            * Fires when on any editor when an image is deleted
+            * @param {Roo.HtmlEditorCore} this
+            */
+           imagedelete: true  
         });
         this.defaultAutoCreate =  {
             tag: "textarea",