Roo/htmleditor/BlockFigure.js wip_leon_T7793_messed_up_captions
authorleon <leon@roojs.com>
Mon, 28 Aug 2023 08:20:02 +0000 (16:20 +0800)
committerleon <leon@roojs.com>
Mon, 28 Aug 2023 08:20:02 +0000 (16:20 +0800)
Roo/htmleditor/BlockFigure.js

index 9d01b1d..70b56c0 100644 (file)
@@ -418,7 +418,7 @@ 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' && this.caption == '' && dc && dc.length){
+        if(this.caption_display == 'none' && dc && dc.length){
             this.caption = dc;
         }