org.xwiki.gwt.wysiwyg.client.plugin.importer
Class IEPasteFilter

java.lang.Object
  extended by org.xwiki.gwt.wysiwyg.client.plugin.importer.PasteFilter
      extended by org.xwiki.gwt.wysiwyg.client.plugin.importer.IEPasteFilter

public class IEPasteFilter
extends PasteFilter

Removes non-HTML elements, i.e. element from a difference name-space.

When pasting rich text from an office document opened with Microsoft's Word application in Internet Explorer the created DOM contains non-HTML elements. These elements have a different name-space that is serialized using a non-standard syntax:

 <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
 
which is not understood by the server side parser.

Version:
$Id$
See Also:
XML tags are displayed after copy&paste word-doc in office importer

Constructor Summary
IEPasteFilter()
           
 
Method Summary
 void filter(com.google.gwt.dom.client.Document document)
          Filters the given DOM document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IEPasteFilter

public IEPasteFilter()
Method Detail

filter

public void filter(com.google.gwt.dom.client.Document document)
Filters the given DOM document.

Overrides:
filter in class PasteFilter
Parameters:
document - the DOM document to be filtered
See Also:
PasteFilter.filter(Document)


Copyright © 2004-2012 XWiki. All Rights Reserved.