from cmsplugin_rst.models import RstPluginModel, rst_help_text
from django import forms



class RstPluginForm(forms.ModelForm):

    body = forms.CharField(
                widget=forms.Textarea(attrs={
                    'rows':30,
                    'cols':80,
                    'style':'font-family:monospace'
                }),
                help_text=rst_help_text
            )
    
    class Meta:
        model = RstPluginModel
        fields = ["name", "header_level", "body"]
from cmsplugin_rst.models import RstPluginModel, rst_help_text
from django import forms



class RstPluginForm(forms.ModelForm):

    body = forms.CharField(
                widget=forms.Textarea(attrs={
                    'rows':20,
                    'cols':80,
                    'style':'font-family:monospace'
                }),
                help_text=rst_help_text
            )
    
    class Meta:
        model = RstPluginModel
        fields = ["name", "header_level", "body"]
Tweak too high textarea for RST text.