Roo/bootstrap/form/HtmlEditorToolbar/Standard.js
authorAlan <alan@roojs.com>
Fri, 17 Feb 2023 04:50:55 +0000 (12:50 +0800)
committerAlan <alan@roojs.com>
Fri, 17 Feb 2023 04:50:55 +0000 (12:50 +0800)
Roo/bootstrap/form/HtmlEditorToolbar/Standard.js

index 108c250..e7732f7 100644 (file)
@@ -270,7 +270,8 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Standard, Roo.bootstrap.nav.Simp
                 return;
             }
             editor.insertAtCursor('<img src="' + reader.result +'">');
-            editor.owner.fireEvent('editorevent', editor, false);
+            editor.owner.fireEvent('editorevent', editor.owner, false);
+            editor.owner.fireEvent('imageadd', editor.owner, false);
             
         }).createDelegate(this));
         reader.readAsDataURL(f);