Answer the question
In order to leave comments, you need to log in
A small glitch in the work of elfinder, who faced it?
In general, I make a news editor. Everything is fine with text, but I use Elfinder to insert images. The text itself is inserted without problems.
But here I just attached it to the field in order to select an image for the news header:
<?php echo $form->field($model, 'image')->widget(InputFile::className(), [
'language' => 'ru',
'controller' => 'elfinder',
'filter' => 'image',
'template' => '<div class="input-group">{input}<span class="input-group-btn">{button}</span></div>',
'options' => ['class' => 'form-control'],
'buttonOptions' => ['class' => 'btn btn-default'],
'multiple' => false // возможность выбора нескольких файлов
]);?>
error in 'getFileCallback' Cannot read property 'preventDefault' of underfined
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question