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