Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Restored row/col defaults in TextareaField and HtmlEditorField …

…(broken in 1a10e8b)
  • Loading branch information...
commit 243d4d45aa5d63aff39275843ff30fabb9125c44 1 parent dc9b1a4
@chillu chillu authored
Showing with 11 additions and 1 deletion.
  1. +2 −0  forms/HtmlEditorField.php
  2. +9 −1 forms/TextareaField.php
View
2  forms/HtmlEditorField.php
@@ -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
10 forms/TextareaField.php
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.