code: def paste(self):
          
          html = QApplication.clipboard().text()
          if not self.isRichTextEditEnabled():
              self.insertPlainText(projex.text.toAscii(html))
          else:
              super(XTextEdit, self).paste()
docs: Pastes text from the clipboard into this edit.