Enabled supression of wysihtml5()
This commit is contained in:
parent
9eb699d50e
commit
d3627ace8f
@ -89,9 +89,12 @@ abstract class lnApp_Form extends Kohana_Form {
|
||||
if (! isset($attributes['id']))
|
||||
$attributes['id'] = preg_replace('/[\[\]]/','_',$name);
|
||||
|
||||
if (! isset($attributes['nowysihtml']))
|
||||
Script::factory()
|
||||
->type('stdin')
|
||||
->data('$("#'.$attributes['id'].'").wysihtml5();');
|
||||
else
|
||||
unset($attributes['wysihtml']);
|
||||
|
||||
return sprintf(static::_controlgroup($name,$attributes),parent::textarea($name,$body,$attributes,$double_encode));
|
||||
}
|
||||
|
Reference in New Issue
Block a user