return;
case this.tag === true: // everything
+ case e.tagName.indexOf(":") > -1 && typeof(this.tag) == 'object' && this.tag.indexOf(":") > -1:
+ case e.tagName.indexOf(":") > -1 && typeof(this.tag) == 'string' && this.tag == ":":
case typeof(this.tag) == 'object' && this.tag.indexOf(e.tagName) > -1: // array and it matches.
case typeof(this.tag) == 'string' && this.tag == e.tagName: // array and it matches.
if (this.replaceTag && false === this.replaceTag(e)) {
Roo.htmleditor.FilterWord = function(cfg)
{
- console.log("FilterWord definition");
// no need to apply config.
this.replaceDocBullets(cfg.node);
- this.walk(cfg.node);
+ // this is disabled as the removal is done by other filters;
+ // this.walk(cfg.node);
}
replaceTag : function(node)
{
- console.log("FilterWord replaceTag");
// no idea what this does - span with text, replaceds with just text.
if(
node.nodeName == 'SPAN' &&
});
new Roo.htmleditor.FilterBlack({ node : d, tag : this.black});
// should be fonts..
- new Roo.htmleditor.FilterKeepChildren({node : d, tag : [ 'FONT', 'O:P' ]} );
+ new Roo.htmleditor.FilterKeepChildren({node : d, tag : [ 'FONT', ':' ]} );
new Roo.htmleditor.FilterParagraph({ node : d });
new Roo.htmleditor.FilterSpan({ node : d });
new Roo.htmleditor.FilterLongBr({ node : d });
*/
cleanWord : function(node)
{
- console.log("HtmlEditorCore cleanWord");
new Roo.htmleditor.FilterWord({ node : node ? node : this.doc.body });
+ new Roo.htmleditor.FilterKeepChildren({node : node ? node : this.doc.body, tag : [ 'FONT', ':' ]} );
},
actiontype : 'word',
html: 'Remove MS Word Formating',
handler: function(a,b) {
- console.log("ToolbarStandard Handler");
editorcore.cleanWord();
editorcore.syncValue();
},