code: def reverseCommit(self):
          
          print(self.after == self.before)
          pos = self.qteWidget.textCursor().position()
          self.qteWidget.setHtml(self.before)
          self.placeCursor(pos)
docs: Reverse the document to the original state.