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

index cb9f64d..c30d1ef 100644 (file)
@@ -422,7 +422,8 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
 
         // read caption from data-caption in figure if empty figcaption
         var dc = this.getVal(node, true, 'data-caption');
-        if (this.caption_display == 'none' && figcaption != '' && dc && dc.length) {
+        // if (this.caption_display == 'none' && figcaption != '' && dc && dc.length) {
+        if(this.caption == '' && dc && dc.length){
             this.caption = dc;
             Roo.log(this.caption);
         }