code: def toggle_plain_text(self, checked):
          
          if checked:
              self.docstring = checked
              self.switch_to_plain_text()
              self.force_refresh()
          self.set_option('rich_mode', not checked)
docs: Toggle plain text docstring