I am using a form field of type cktext. I'd like to add a maxlength to it. Can this be done?
In the /models/forms/ xml document I have the field:
<field name="introtext"
label="RSADMINISTRATOR_FIELD_INTROTEXT"
alias="introtext"
filter="RAW"
type="cktext"/>
In the models/fields/cktext.php
public function getInput()
{
$this->input = JDom::_('html.form.input.text', array_merge(array(
'dataKey' => $this->getOption('name'),
'domClass' => $this->getOption('class'),
'domId' => $this->id,
'domName' => $this->name,
'dataValue' => $this->value,
'placeholder' => $this->getOption('placeholder'),
'responsive' => $this->getOption('responsive'),
'size' => $this->getOption('size')
), $this->jdomOptions));
return parent::getInput();
}
I'm assuming I can do something here to add ' maxlength="140" ' to the rendered html.
Any ideas?
Andy