mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
20ada72b4d
commit
0a89009b73
@ -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("&","<",">"),$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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user