contao/import — Issue #2997: textArea Widget - readonly feature
Author: importer
Created: 2011-11-29 20:40:14+00:00
State: open
Labels: Defect, frontend

in a normal textfield there is the eval attribute **readonly** available.
not in the textarea widget.

Actually , you can doo this, in that way :
'eval' => array('style'=>'height:80px;width:100%;" readonly="readonly' ),

packed in the style part.

It is quite simpel to add this, copy the readonly part

case 'readonly':
$this->arrAttributes['readonly'] = 'readonly';
$this->blnSubmitInput = false;
break;

to the __set of system/backend/TextArea.php

--- _Originally created by lindesbs on April 7th, 2011, at 10:41pm (ID 2997)_