Exemple #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)
Exemple #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)
Exemple #3
0
 def pasteXhtml(self):
     content = getTextFromClipboard()
     return self._getMshtmlControl().paste(content, True)
Exemple #4
0
 def pasteXhtml(self):
     content = getTextFromClipboard()
     return self._getMshtmlControl().paste(content, True)