From 70d106573eea61fd15a666ac34726136db1efd32 Mon Sep 17 00:00:00 2001 From: Alan Date: Wed, 16 Aug 2023 13:49:54 +0800 Subject: [PATCH] fix #7771 - correct fix for image captions --- Roo/htmleditor/BlockFigure.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Roo/htmleditor/BlockFigure.js b/Roo/htmleditor/BlockFigure.js index 9fac188ed5..60e83f737b 100644 --- a/Roo/htmleditor/BlockFigure.js +++ b/Roo/htmleditor/BlockFigure.js @@ -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 (this.caption_display == 'none' && figcaption != '' && dc && dc.length) { this.caption = dc; } //this.text_align = this.getVal(node, 'figcaption', 'style','text-align'); -- 2.39.2