From a4d78ef50eae60bb1321f5e69640922687545e4f Mon Sep 17 00:00:00 2001 From: Alan Date: Mon, 10 Jan 2022 15:07:50 +0800 Subject: [PATCH] Roo/htmleditor/BlockFigure.js --- Roo/htmleditor/BlockFigure.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Roo/htmleditor/BlockFigure.js b/Roo/htmleditor/BlockFigure.js index b8c6d77645..0eda7fe1cc 100644 --- a/Roo/htmleditor/BlockFigure.js +++ b/Roo/htmleditor/BlockFigure.js @@ -65,6 +65,35 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { text : "Source: ", xns : rooui.Toolbar //Boostrap? }, + { + xtype : 'Button', + text: 'Edit Src', + name : 'image_src', + + listeners : { + click: function (btn, state) + { + + + Roo.MessageBox.show({ + title : "Image Source URL", + msg : "Enter the url for the image", + buttons: this.OKCANCEL, + fn: function(val){ + block().image_src = val; + block().updateElement(); + }, + minWidth:250, + prompt:true, + //multiline: multiline, + modal : true, + value : block().image_src + }); + } + }, + xns : rooui.Toolbar + }, + { xtype : 'TextField', allowBlank : false, -- 2.39.2