Roo/htmleditor/BlockFigure.js
authorAlan <alan@roojs.com>
Mon, 10 Jan 2022 07:07:50 +0000 (15:07 +0800)
committerAlan <alan@roojs.com>
Mon, 10 Jan 2022 07:07:50 +0000 (15:07 +0800)
Roo/htmleditor/BlockFigure.js

index b8c6d77..0eda7fe 100644 (file)
@@ -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,