# HG changeset patch # User Aurelien Campeas <aurelien.campeas@logilab.fr> # Date 1247137468 -7200 # Node ID acf4b6a59558e2dc64e9dff5a4fa5a474772ee95 # Parent 66d04a868313a4745378ec2bf41a36b18fddce19 [formwidgets] ensure textarea for richstring has not ridicuously small size (close #344547) diff -r 66d04a868313 -r acf4b6a59558 web/formfields.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): diff -r 66d04a868313 -r acf4b6a59558 web/test/unittest_form.py --- 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):