CSS classes for textarea

This commit is contained in:
Roland Gruber 2012-12-10 20:58:20 +00:00
parent 44bb7baad2
commit a52769a734
1 changed files with 5 additions and 1 deletions

View File

@ -1832,9 +1832,13 @@ class htmlInputTextarea extends htmlElement {
if (!$this->isEnabled) {
$disabled = ' disabled';
}
$classList = $this->cssClasses;
$classes = '';
if ($this->richEdit) {
$classes = ' class="ckeditor"';
$classList[] = 'ckeditor';
}
if (is_array($classList) && (sizeof($classList) > 0)) {
$classes = ' class="' . implode(' ', $classList) . '"';
}
echo '<textarea name="' . $this->name . '" id="' . $this->name . '"' . $tabindexValue . $classes . $colCount . $rowCount . $disabled . '>' . $this->value . '</textarea>';
return array($this->name => 'textarea');