Roo/htmleditor/BlockFigure.js
authorleon <leon@roojs.com>
Mon, 25 Sep 2023 04:15:08 +0000 (12:15 +0800)
committerleon <leon@roojs.com>
Mon, 25 Sep 2023 04:15:08 +0000 (12:15 +0800)
Roo/htmleditor/BlockFigure.js

index ad8f684..9c20794 100644 (file)
@@ -398,6 +398,9 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
          
         this.align = this.getVal(node, 'figure', 'align');
 
+        // caption display is stored in figure
+        this.caption_display = this.getVal(node, true, 'data-caption-display');
+
         // backward compatible
         // it was stored in figcaption
         if(this.caption_display == '') {