public function run()
{
FileInputAsset::register($this->view);
if (!empty($this->callbackBeforeInsert)) {
$this->view->registerJs('
$("#' . $this->options['id'] . '").on("fileInsert", ' . $this->callbackBeforeInsert . ');');
}
$modal = $this->renderFile('@vendor/pendalf89/yii2-filemanager/views/file/modal.php', ['inputId' => $this->options['id'], 'btnId' => $this->options['id'] . '-btn', 'frameId' => $this->options['id'] . '-frame', 'frameSrc' => Url::to(['/filemanager/file/filemanager']), 'thumb' => $this->thumb]);
return $this->tinyMCE . $modal;
}