Roo/HtmlEditorCore.js
authorAlan <alan@roojs.com>
Tue, 28 Dec 2021 08:09:58 +0000 (16:09 +0800)
committerAlan <alan@roojs.com>
Tue, 28 Dec 2021 08:09:58 +0000 (16:09 +0800)
Roo/HtmlEditorCore.js

index ece480b..3acb71d 100644 (file)
@@ -359,6 +359,8 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
            
             new Roo.htmleditor.FilterAttributes({node : div, attrib_black: [ 'contenteditable' ] });
             //?? tidy?
+            new Roo.htmleditor.FilterBlock({ node : div });
+            
             var html = div.innerHTML;
             if(Roo.isSafari){
                 var bs = bd.getAttribute('style'); // Safari puts text-align styles on the body element!
@@ -594,7 +596,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
         
         
         this.insertAtCursor(d.innerHTML);
-        
+        Roo.htmleditor.Block.initAll(this.doc.body);
         
         
         e.preventDefault();