Beispiel #1
0
 def pasteXhtml(self):
     # get text from clipboard and insert xhtml
     content = getTextFromClipboard()
     if content:
         xhtmlDoc = loadXhtmlDocumentFromString(content)
         if xhtmlDoc:
             html = u"" #$NON-NLS-1$
             for node in xhtmlDoc.getBody().selectNodes(u"child::*"): #$NON-NLS-1$
                 html = html + node.serialize()
             self._insertHtml(html, 0)
Beispiel #2
0
 def pasteXhtml(self):
     # get text from clipboard and insert xhtml
     content = getTextFromClipboard()
     if content:
         xhtmlDoc = loadXhtmlDocumentFromString(content)
         if xhtmlDoc:
             html = u""  #$NON-NLS-1$
             for node in xhtmlDoc.getBody().selectNodes(
                     u"child::*"):  #$NON-NLS-1$
                 html = html + node.serialize()
             self._insertHtml(html, 0)
Beispiel #3
0
 def pasteXhtml(self):
     content = getTextFromClipboard()
     return self._getMshtmlControl().paste(content, True)
Beispiel #4
0
 def pasteXhtml(self):
     content = getTextFromClipboard()
     return self._getMshtmlControl().paste(content, True)