MINOR Restored row/col defaults in TextareaField and HtmlEditorField (broken in 1a10e8bc)

This commit is contained in:
Ingo Schommer 2012-02-10 12:15:21 +01:00
parent dc9b1a4bb8
commit 243d4d45aa
2 changed files with 11 additions and 1 deletions

View File

@ -12,6 +12,8 @@ class HtmlEditorField extends TextareaField {
* @var Boolean Use TinyMCE's GZIP compressor
*/
static $use_gzip = true;
protected $rows = 30;
/**
* Includes the JavaScript neccesary for this field to work using the {@link Requirements} system.

View File

@ -24,7 +24,15 @@ class TextareaField extends FormField {
protected $template = 'TextareaField';
protected $rows, $cols;
/**
* @var Int Visible number of text lines.
*/
protected $rows = 5;
/**
* @var Int Width of the text area (in average character widths)
*/
protected $cols = 20;
/**
* Create a new textarea field.