Roo/htmleditor/BlockFigure.js
authorAlan <alan@roojs.com>
Thu, 6 Jan 2022 05:07:50 +0000 (13:07 +0800)
committerAlan <alan@roojs.com>
Thu, 6 Jan 2022 05:07:50 +0000 (13:07 +0800)
Roo/htmleditor/BlockFigure.js

index 04653cb..6aa3b11 100644 (file)
@@ -259,6 +259,9 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
     
     readElement : function(node)
     {
+        // this should not really come from the link...
+        this.href = this.getVal(node, 'a', 'href');
+        
         this.image_src = this.getVal(node, 'img', 'src');
         this.align = this.getVal(node, 'figure', 'align');
         this.caption = this.getVal(node, 'figcaption', 'html');