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

index 62682d6..d65d0b1 100644 (file)
@@ -325,6 +325,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
             'data-block' : 'Figure',
             'data-width' : this.width,
             'data-caption' : this.caption, 
+            'data-caption-display' : this.caption_display,
             contenteditable : 'false',
             
             style : {
@@ -349,7 +350,6 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
         if(this.caption_display == 'block') {
             ret['cn'].push({
                 tag: 'figcaption',
-                'data-display' : this.caption_display,
                 style : {
                     textAlign : 'left',
                     fontSize : '16px',