Project

General

Profile

Bug #14171 » class.tslib_content.php.textareawrap.patch

Administrator Admin, 2005-05-17 16:07

View differences:

class.tslib_content.php 2005-05-17 15:57:35.267907280 +0200
$cols = t3lib_div::intInRange($cols*$compWidth, 1, 120);
$rows=trim($fParts[2]) ? t3lib_div::intInRange($fParts[2],1,30) : 5;
$wrap=trim($fParts[3]) ? ' wrap="'.trim($fParts[3]).'"' : ' wrap="virtual"';
$wrap=trim($fParts[3]);
if ($conf['noWrapAttr'] || $wrap === 'disabled') {
$wrap='';
} else {
$wrap=$wrap ? ' wrap="'.trim($fParts[3]).'"' : ' wrap="virtual"';
}
$default = $this->getFieldDefaultValue($conf['noValueInsert'], $confData['fieldname'], str_replace('\n',chr(10),trim($parts[2])));
$fieldCode=sprintf('<textarea name="%s"'.$elementIdAttribute.' cols="%s" rows="%s"%s'.$addParams.'>%s</textarea>',
$confData['fieldname'], $cols, $rows, $wrap, t3lib_div::formatForTextarea($default));
(2-2/2)