helios-ag / FMElfinderBundle

:file_folder: ElFinderBundle provides ElFinder integration with TinyMCE, CKEditor, Summernote editors
MIT License
275 stars 128 forks source link

Pass formTypeId to custom editor #420

Closed MaelGenevrais closed 3 years ago

MaelGenevrais commented 3 years ago

Pass formTypeId to custom editor to be able to use it in forms.

ElFinderController.php (line 85) :


$result['template'] = $parameters['editor_template'];
$result['params']   = [
    'locale'        => $locale,
    'fullscreen'    => $fullScreen,
    'instance'      => $instance,
    'homeFolder'    => $homeFolder,
    'relative_path' => $relativePath,
    'prefix'        => $assetsPath,
    'theme'         => $theme,
    'pathPrefix'    => $pathPrefix,
    'onlyMimes'     => $onlyMimes,
    'id'            => $formTypeId,
];
helios-ag commented 3 years ago

Do you want to create PR?

MaelGenevrais commented 3 years ago

Sure !