Commits

Guilherme Gondim  committed 6ed1b33

Change the default number of rows of the textarea to display better in smaller screens

  • Participants
  • Parent commits 27e29da

Comments (0)

Files changed (2)

   class MyModelAdmin(admin.ModelAdmin):
       formfield_overrides = {
           TextField: {'widget': RedactorEditorAdmin(
-              attrs={'rows': 40}
+              attrs={'rows': 24}
           )},
       }
 

File redator/admin.py

 class RedactorAdmin(admin.ModelAdmin):
     formfield_overrides = {
         models.TextField: {'widget': RedactorEditorAdmin(
-            attrs={'rows': 40}
+            attrs={'rows': 24}
         )},
     }