docs: def replace_all(self, text=None):
          """
          Replaces all occurrences in the editor's document.
  
          :param text: The replacement text. If None, the content of the lineEdit
                       replace will be used instead
          """
          cursor = self.editor.textCursor()
          cursor.beginEditBlock()
          remains = self.replace(text=text)
          while remains:
              remains = self.replace(text=text)
          cursor.endEditBlock()