code: def __set_document_signals(self):
          
  
          # Signals / Slots.
          self.document().contentsChanged.connect(self.contents_changed.emit)
          self.document().contentsChanged.connect(self.__document__contents_changed)
          self.document().modificationChanged.connect(self.modification_changed.emit)
          self.document().modificationChanged.connect(self.__document__modification_changed)
docs: Connects the editor document signals.