Roo/htmleditor/BlockFigure.js
authorleon <leon@roojs.com>
Mon, 14 Aug 2023 05:17:29 +0000 (13:17 +0800)
committerleon <leon@roojs.com>
Mon, 14 Aug 2023 05:17:29 +0000 (13:17 +0800)
Roo/htmleditor/BlockFigure.js

index 2b73405..227b538 100644 (file)
@@ -406,7 +406,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
 
         this.caption_display = this.getVal(node, 'figcaption', 'data-display');
         var dc = this.getVal(node, true, 'data-caption');
-        if (dc && dc.length) {
+        if (caption_display == 'none' && figcaption != '' && dc && dc.length) {
             this.caption = dc;
         }
         //this.text_align = this.getVal(node, 'figcaption', 'style','text-align');