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

index 8b6e253..a29256a 100644 (file)
@@ -374,7 +374,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
                                 // we can not rely on yahoo syndication to use CSS elements - so have to use  '<i>' to encase stuff.
                                 tag : 'i',
                                 contenteditable : Roo.htmleditor.BlockFigure.caption_edit,
-                                html : captionhtml
+                                html : this.caption.length ? this.caption : "Caption"
                             }
                             
                         ]