Roo/bootstrap/form/HtmlEditorToolbar/Standard.js
authorleon <leon@roojs.com>
Mon, 27 Mar 2023 02:37:25 +0000 (10:37 +0800)
committerleon <leon@roojs.com>
Mon, 27 Mar 2023 02:37:25 +0000 (10:37 +0800)
Roo/bootstrap/form/HtmlEditorToolbar/Standard.js

index a9a5c83..dcea277 100644 (file)
@@ -259,7 +259,7 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Standard, Roo.bootstrap.nav.Simp
                 bl.updateElement(sn);
                 this.editor.syncValue();
                 editor.owner.fireEvent('editorevent', editor.owner, false);
-                editor.owner.fireEvent('imageupdate', editor.owner, sn);
+                editor.owner.fireEvent('imageupdate', editor.owner, sn, oldSrc);
                 // we only do the first file!! and replace.
                 return;
             }
@@ -279,7 +279,7 @@ Roo.extend(Roo.bootstrap.form.HtmlEditorToolbar.Standard, Roo.bootstrap.nav.Simp
                 sn.src = reader.result;
                 this.editor.syncValue();
                 editor.owner.fireEvent('editorevent', editor.owner, false);
-                editor.owner.fireEvent('imageupdate', editor.owner, sn);
+                editor.owner.fireEvent('imageupdate', editor.owner, sn, oldSrc);
                 return;
             }
             editor.insertAtCursor('<img src="' + reader.result +'">');