Roo/htmleditor/BlockFigure.js
authorleon <leon@roojs.com>
Mon, 28 Aug 2023 03:04:42 +0000 (11:04 +0800)
committerleon <leon@roojs.com>
Mon, 28 Aug 2023 03:04:42 +0000 (11:04 +0800)
Roo/htmleditor/BlockFigure.js

index 076fe11..dbc789c 100644 (file)
@@ -416,6 +416,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
 
         if (figcaption !== '') {
             this.caption = this.getVal(figcaption, 'i', 'html');
+            Roo.log('FIGCAPTION');
         }
         Roo.log(this.caption);
                 
@@ -425,9 +426,10 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
         // if (this.caption_display == 'none' && figcaption != '' && dc && dc.length) {
         if(this.caption == '' && dc && dc.length){
             this.caption = dc;
+            Roo.log('DATA CAPTION');
         }
         Roo.log(this.caption);
-        
+
         //this.text_align = this.getVal(node, 'figcaption', 'style','text-align');
         this.width = this.getVal(node, true, 'data-width');
         //this.margin = this.getVal(node, 'figure', 'style', 'margin');