Roo/HtmlEditorCore.js
[roojs1] / Roo / HtmlEditorCore.js
index 5c28b28..0d5a926 100644 (file)
@@ -376,6 +376,16 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
             
            
             if (this.enableBlocks) {
+                // Array.from(bd.getElementsByTagName('img')).forEach(function(img) {
+                //     var fig = img.closest('figure');
+                //     if (fig) {
+                //         var bf = new Roo.htmleditor.BlockFigure({
+                //             node : fig
+                //         });
+                //         bf.updateElement();
+                //     }
+                    
+                // });
                 new Roo.htmleditor.FilterBlock({ node : div });
             }
             
@@ -699,8 +709,9 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
                     'name',
                     'align',
                     'colspan',
-                    'rowspan',
-                    'data-display',
+                    'rowspan' 
+                /*  THESE ARE NOT ALLWOED FOR PASTE
+                 *    'data-display',
                     'data-caption-display',
                     'data-width',
                     'data-caption',
@@ -713,6 +724,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
                     'width',
                     'height',
                     'alt'
+                    */
                     ],
                 attrib_clean : ['href', 'src' ] 
             });
@@ -720,6 +732,7 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component,  {
             // should be fonts..
             new Roo.htmleditor.FilterKeepChildren({node : d, tag : [ 'FONT', ':' ]} );
             new Roo.htmleditor.FilterParagraph({ node : d });
+            new Roo.htmleditor.FilterHashLink({node : d});
             new Roo.htmleditor.FilterSpan({ node : d });
             new Roo.htmleditor.FilterLongBr({ node : d });
             new Roo.htmleditor.FilterComment({ node : d });