Roo/htmleditor/BlockFigure.js
authorAlan <alan@roojs.com>
Wed, 16 Mar 2022 06:13:41 +0000 (14:13 +0800)
committerAlan <alan@roojs.com>
Wed, 16 Mar 2022 06:13:41 +0000 (14:13 +0800)
Roo/htmleditor/BlockFigure.js

index 814a7fe..6c50282 100644 (file)
@@ -395,7 +395,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
          
         this.align = this.getVal(node, 'figure', 'align');
         var figcaption = this.getVal(node, 'figcaption', false);
-        if (figcaption !== false) {
+        if (figcaption !== '') {
             this.caption = this.getVal(figcaption, 'i', 'html');
         }