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

index 0d05a2e..076fe11 100644 (file)
@@ -407,8 +407,8 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
         // it was stored in figcaption
         if(this.caption_display == '') {
             this.caption_display = this.getVal(node, 'figcaption', 'data-display');
-            Roo.log(this.caption_display);
         }
+        Roo.log(this.caption_display);
 
         // read caption from figcaption
         var figcaption = this.getVal(node, 'figcaption', false);
@@ -416,8 +416,8 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
 
         if (figcaption !== '') {
             this.caption = this.getVal(figcaption, 'i', 'html');
-            Roo.log(this.caption);
         }
+        Roo.log(this.caption);
                 
 
         // read caption from data-caption in figure if no caption from figcaption
@@ -425,8 +425,9 @@ 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(this.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');