code: def formfield(self, **kwargs):
          
          defaults = {
              'form_class': RichTextFormField,
              'config': self.config,
          }
          defaults.update(kwargs)
          return super(RichTextField, self).formfield(**defaults)
docs: Get the form for field.