public $type = 'text';
public $null = true;
private $textarea_size = 300;
+ private $textarea_type_preg = '^(\w*text|binary|blob|varchar)';
public $key = 0;
public $uniq = 0;
public $index = 0;
public function html_edit($values,$type=null) {
$size = ($this->size() and is_scalar($this->size())) ? $this->size() : 0;
- $tag = ( ($size>$this->textarea_size) or preg_match('/^(\w*text|binary|blob)/i',$this->type) ) ? 'textarea' : 'input';
+ #$tag = ( ($size>$this->textarea_size) or preg_match('/^(\w*text|binary|blob)/i',$this->type) ) ? 'textarea' : 'input';
+ $tag = ( ($size>$this->textarea_size) or preg_match('/'.$this->textarea_type_preg.'/i',$this->type) ) ? 'textarea' : 'input';
$html = '';