diff --git a/ElFinderInput.php b/ElFinderInput.php index 12ccc55..34ce8a5 100644 --- a/ElFinderInput.php +++ b/ElFinderInput.php @@ -41,7 +41,13 @@ public function run() $contoptions = $this->options; $contoptions['id'] = $this->options['id'] . 'container'; echo Html::beginTag('div', $contoptions); - $inputOptions = array('id' => $this->options['id'], 'style' => 'float:left;' /*, 'readonly' => 'readonly'*/); + if (isset($this->options['inputOptions'])){ + $inputOptions = $this->options['inputOptions']; + } else { + $inputOptions = array(); + } + $inputOptions['id'] = $this->options['id']; + $inputOptions['style'] = isset($inputOptions['style']) ? $inputOptions['style']: 'float:left;'; if ($this->hasModel()) { echo Html::activeTextInput($this->model, $this->attribute, $inputOptions); } else {