[formwidgets] ensure textarea for richstring has not ridicuously small size (close #344547)
--- 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):