Roo/HtmlEditorCore.js
authorAlan <alan@roojs.com>
Fri, 21 Jan 2022 03:49:10 +0000 (11:49 +0800)
committerAlan <alan@roojs.com>
Fri, 21 Jan 2022 03:49:10 +0000 (11:49 +0800)
Roo/HtmlEditorCore.js

index c8a66a8..4ac7762 100644 (file)
@@ -448,8 +448,10 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
                 new Roo.htmleditor.FilterParagraph({node : this.doc.body}); // paragraphs
                 new Roo.htmleditor.FilterSpan({node : this.doc.body}); // empty spans
             }
+            if (this.enableBlocks) {
+                Roo.htmleditor.Block.initAll(this.doc.body);
+            }
             
-            Roo.htmleditor.Block.initAll(this.doc.body);
             this.updateLanguage();
             
             var lc = this.doc.body.lastChild;