From: Alan Date: Mon, 10 Jan 2022 07:23:28 +0000 (+0800) Subject: Roo/htmleditor/BlockFigure.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=fee06fde39a6e07eab83c774398bc839eb8f125f Roo/htmleditor/BlockFigure.js --- diff --git a/Roo/htmleditor/BlockFigure.js b/Roo/htmleditor/BlockFigure.js index 576728112f..648091a0f0 100644 --- a/Roo/htmleditor/BlockFigure.js +++ b/Roo/htmleditor/BlockFigure.js @@ -78,7 +78,10 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { title : "Image Source URL", msg : "Enter the url for the image", buttons: Roo.MessageBox.OKCANCEL, - fn: function(val){ + fn: function(btn, val){ + if (btn != 'ok') { + return; + } b.image_src = val; b.updateElement(); syncValue(); @@ -108,7 +111,10 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { title : "Link URL", msg : "Enter the url for the link - leave blank to have no link", buttons: Roo.MessageBox.OKCANCEL, - fn: function(val){ + fn: function(btn, val){ + if (btn != 'ok') { + return; + } b.href = val; b.updateElement(); syncValue();