From fee06fde39a6e07eab83c774398bc839eb8f125f Mon Sep 17 00:00:00 2001 From: Alan Date: Mon, 10 Jan 2022 15:23:28 +0800 Subject: [PATCH] Roo/htmleditor/BlockFigure.js --- Roo/htmleditor/BlockFigure.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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(); -- 2.39.2