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

index d65d0b1..f4d069c 100644 (file)
@@ -426,8 +426,8 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
 
         // read caption from data-caption in figure if no caption from figcaption
         var dc = this.getVal(node, true, 'data-caption');
-        // if (this.caption_display == 'none' && figcaption != '' && dc && dc.length) {
-        if(this.caption == '' && dc && dc.length){
+        
+        if(this.caption_display == 'none' && this.caption == '' && dc && dc.length){
             this.caption = dc;
             Roo.log('DATA CAPTION');
         }