コード例 #1
0
ファイル: stceditor.py プロジェクト: Tidosho/zoundryraven
 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
ファイル: mshtmleditor.py プロジェクト: Tidosho/zoundryraven
 def pasteXhtml(self):
     content = getTextFromClipboard()
     return self._getMshtmlControl().paste(content, True)
コード例 #4
0
 def pasteXhtml(self):
     content = getTextFromClipboard()
     return self._getMshtmlControl().paste(content, True)