[formwidgets] ensure textarea for richstring has not ridicuously small size (close #344547) stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 09 Jul 2009 13:04:28 +0200
branchstable
changeset 2348 acf4b6a59558
parent 2347 66d04a868313
child 2349 b9e2c1b7b873
child 2355 359903ef980a
[formwidgets] ensure textarea for richstring has not ridicuously small size (close #344547)
web/formfields.py
web/test/unittest_form.py
--- a/web/formfields.py	Thu Jul 09 12:38:33 2009 +0200
+++ b/web/formfields.py	Thu Jul 09 13:04:28 2009 +0200
@@ -222,6 +222,9 @@
         super(RichTextField, self).__init__(**kwargs)
         self.format_field = format_field
 
+    def init_text_area(self, widget):
+        pass
+
     def get_widget(self, form):
         if self.widget is None:
             if self.use_fckeditor(form):
--- a/web/test/unittest_form.py	Thu Jul 09 12:38:33 2009 +0200
+++ b/web/test/unittest_form.py	Thu Jul 09 13:04:28 2009 +0200
@@ -156,7 +156,7 @@
 <option value="text/html">text/html</option>
 <option value="text/plain">text/plain</option>
 <option selected="selected" value="text/rest">text/rest</option>
-</select><textarea cols="60" id="description:%(eid)s" name="description:%(eid)s" onkeyup="autogrow(this)" rows="5" tabindex="1"/>''')
+</select><textarea cols="80" id="description:%(eid)s" name="description:%(eid)s" onkeyup="autogrow(this)" rows="20" tabindex="1"/>''')
 
 
     def test_richtextfield_2(self):