예제 #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)
예제 #2
0
파일: stceditor.py 프로젝트: mpm2050/Raven
 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)
예제 #3
0
 def pasteXhtml(self):
     content = getTextFromClipboard()
     return self._getMshtmlControl().paste(content, True)
예제 #4
0
 def pasteXhtml(self):
     content = getTextFromClipboard()
     return self._getMshtmlControl().paste(content, True)