textboxunit with >1 rows

Robbo

Well-known member
Is there any reason that textboxunits that are compiled into a textarea don't allow the use of maxlength?

PHP:
if (!empty($controlOptions['rows']) && $type == 'text')
        {
            $cols = (!empty($controlOptions['size']) ? $controlOptions['size'] : 60);
            $wrap = (!empty($controlOptions['code']) ? ' wrap="off"' : '');
 
            return "<textarea name=\"{$name}\" rows=\"{$controlOptions['rows']}\" cols=\"{$cols}\"{$title}{$placeholder}{$autofocus}{$wrap}{$dir} class=\"textCtrl{$inputClass}\"{$dataAttributes} id=\"{$id}\">{$value}</textarea>$after";
        }
        else
        {
            return "<input type=\"{$type}\" name=\"{$name}\" value=\"{$value}\"{$size}{$maxlength}{$title}{$placeholder}{$autofocus}{$autocomplete}{$dir}{$step}{$min}{$max}{$results} class=\"textCtrl{$inputClass}\"{$dataAttributes} id=\"{$id}\" />$after";
        }
 
I'm a little surprised Opera doesn't support it.

I agree. This was just for a public section that is limited for the public user but editable in the ACP. I was going to say like user status updates but I just checked the ACP and admins can't modify them?

Edit: or can they moderate them where they show as a profile post?
Edit2: nevermind just answered my own question.
 
Top Bottom