
from django.forms.widgets import TextInput


class RichTextInput(TextInput):
    template_name = 'cms/forms/widgets/rich_text.html'


from django.forms.widgets import Textarea


class RichTextInput(Textarea):
    template_name = 'cms/forms/widgets/rich_text.html'

Switch TextInput for Textarea for RichText widget base class
Switch TextInput for Textarea for RichText widget base class

  
- from django.forms.widgets import TextInput
+ from django.forms.widgets import Textarea
  
  
- class RichTextInput(TextInput):
+ class RichTextInput(Textarea):
      template_name = 'cms/forms/widgets/rich_text.html'
  
Switch TextInput for Textarea for RichText widget base class
## Code Before:

from django.forms.widgets import TextInput


class RichTextInput(TextInput):
    template_name = 'cms/forms/widgets/rich_text.html'

## Instruction:
Switch TextInput for Textarea for RichText widget base class
## Code After:

from django.forms.widgets import Textarea


class RichTextInput(Textarea):
    template_name = 'cms/forms/widgets/rich_text.html'
