MINOR Removed $rows variable from HtmlEditorField - this gets inherited from TextareaField

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@79213 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sean Harvey 2009-06-15 05:17:48 +00:00
parent 20ada72b4d
commit 0a89009b73

View File

@ -10,8 +10,7 @@
* @subpackage fields-formattedinput
*/
class HtmlEditorField extends TextareaField {
protected $rows;
/**
* Includes the javascript neccesary for this field to work in the current output.
* NOTE: If you are loading a form that includes an HtmlEditorField via Ajax this function must be called in the requesting page, because
@ -82,8 +81,7 @@ class HtmlEditorField extends TextareaField {
// We can't use htmlentities as that messes with unicode
$cleanVal = str_replace(array("&","<",">"),array("&amp;","&lt;","&gt;"),$cleanVal);
// 97% instead of 100% to prevent horizontal scrollbars in IE7
$style = "width: 97%; height: " . ($this->rows * 16) . "px";
$style = "width: 97%; height: " . ($this->rows * 16) . "px";
$class = "htmleditor";
$class = ($this->extraClass)?$class." ".$this->extraClass:$class;