Add maxlength for textarea
This commit is contained in:
parent
3c640d409b
commit
fac8a5e9dc
2 changed files with 7 additions and 4 deletions
|
@ -564,6 +564,7 @@ class BBCode extends Parser
|
|||
'value' => $structure->handler,
|
||||
'caption' => 'Handler label',
|
||||
'help' => 'Handler info',
|
||||
'maxlength' => '65535',
|
||||
],
|
||||
'text_handler' => [
|
||||
'class' => ['handler'],
|
||||
|
@ -571,6 +572,7 @@ class BBCode extends Parser
|
|||
'value' => $structure->text_handler,
|
||||
'caption' => 'Text handler label',
|
||||
'help' => 'Text handler info',
|
||||
'maxlength' => '65535',
|
||||
],
|
||||
'recursive' => [
|
||||
'type' => 'radio',
|
||||
|
|
|
@ -463,10 +463,11 @@ class Edit extends Profile
|
|||
if ($this->rules->useSignature) {
|
||||
$fields = [];
|
||||
$fields['signature'] = [
|
||||
'type' => 'textarea',
|
||||
'value' => $this->curUser->signature,
|
||||
'caption' => 'Signature',
|
||||
'help' => ['Sig max size', num($this->curUser->g_sig_length), num($this->curUser->g_sig_lines)],
|
||||
'type' => 'textarea',
|
||||
'value' => $this->curUser->signature,
|
||||
'caption' => 'Signature',
|
||||
'help' => ['Sig max size', num($this->curUser->g_sig_length), num($this->curUser->g_sig_lines)],
|
||||
'maxlength' => $this->curUser->g_sig_length,
|
||||
];
|
||||
$form['sets']['signature'] = [
|
||||
'class' => ['data-edit'],
|
||||
|
|
Loading…
Reference in a new issue