Changed Roo/HtmlEditorCore.jsRoo/htmleditor/BlockFigure.js
authorAlan <alan@roojs.com>
Wed, 16 Mar 2022 06:11:25 +0000 (14:11 +0800)
committerAlan <alan@roojs.com>
Wed, 16 Mar 2022 06:11:25 +0000 (14:11 +0800)
Roo/HtmlEditorCore.js
Roo/htmleditor/BlockFigure.js

index c792173..c7cfbcc 100644 (file)
@@ -629,6 +629,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
             new Roo.htmleditor.FilterParagraph({ node : d });
             new Roo.htmleditor.FilterSpan({ node : d });
             new Roo.htmleditor.FilterLongBr({ node : d });
+            new Roo.htmleditor.FilterComment({ node : d });
         }
         if (this.enableBlocks) {
                 
index b7f3fc6..814a7fe 100644 (file)
@@ -395,7 +395,10 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
          
         this.align = this.getVal(node, 'figure', 'align');
         var figcaption = this.getVal(node, 'figcaption', false);
-        this.caption = this.getVal(figcaption, 'i', 'html');
+        if (figcaption !== false) {
+            this.caption = this.getVal(figcaption, 'i', 'html');
+        }
+        
 
         this.caption_display = this.getVal(node, 'figcaption', 'data-display');
         //this.text_align = this.getVal(node, 'figcaption', 'style','text-align');