From 818e65a85e0b4d6e9345406902e82fce628f405d Mon Sep 17 00:00:00 2001 From: Alan Date: Mon, 10 Jan 2022 15:22:35 +0800 Subject: [PATCH] Roo/htmleditor/BlockFigure.js --- Roo/htmleditor/BlockFigure.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Roo/htmleditor/BlockFigure.js b/Roo/htmleditor/BlockFigure.js index b5ee535ad5..576728112f 100644 --- a/Roo/htmleditor/BlockFigure.js +++ b/Roo/htmleditor/BlockFigure.js @@ -72,15 +72,15 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { listeners : { click: function (btn, state) { - + var b = block(); Roo.MessageBox.show({ title : "Image Source URL", msg : "Enter the url for the image", buttons: Roo.MessageBox.OKCANCEL, fn: function(val){ - block().image_src = val; - block().updateElement(); + b.image_src = val; + b.updateElement(); syncValue(); toolbar.editorcore.onEditorEvent(); }, @@ -88,7 +88,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { prompt:true, //multiline: multiline, modal : true, - value : block().image_src + value : b.image_src }); } }, @@ -102,15 +102,15 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { listeners : { click: function (btn, state) { - + var b = block(); Roo.MessageBox.show({ title : "Link URL", msg : "Enter the url for the link - leave blank to have no link", buttons: Roo.MessageBox.OKCANCEL, fn: function(val){ - block().href = val; - block().updateElement(); + b.href = val; + b.updateElement(); syncValue(); toolbar.editorcore.onEditorEvent(); }, @@ -118,7 +118,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { prompt:true, //multiline: multiline, modal : true, - value : block().href + value : b.href }); } }, -- 2.39.2