diff --git a/Controller/ElFinderController.php b/Controller/ElFinderController.php index 6300795..b462b1a 100644 --- a/Controller/ElFinderController.php +++ b/Controller/ElFinderController.php @@ -139,6 +139,20 @@ private function selectEditor($parameters, $instance, $homeFolder, $assetsPath, 'pathPrefix' => $pathPrefix, ); + return $result; + case 'fm_tinymce': + $result['template'] = 'FMElfinderBundle:Elfinder:fm_tinymce.html.twig'; + $result['params'] = array( + 'locale' => $locale, + 'includeAssets' => $includeAssets, + 'instance' => $instance, + 'homeFolder' => $homeFolder, + 'relative_path' => $relativePath, + 'prefix' => $assetsPath, + 'theme' => $theme, + 'pathPrefix' => $pathPrefix, + ); + return $result; case 'form': $result['template'] = 'FMElfinderBundle:Elfinder:elfinder_type.html.twig'; diff --git a/Resources/views/Elfinder/fm_tinymce.html.twig b/Resources/views/Elfinder/fm_tinymce.html.twig new file mode 100644 index 0000000..4c375d2 --- /dev/null +++ b/Resources/views/Elfinder/fm_tinymce.html.twig @@ -0,0 +1,40 @@ + + +
+{% if includeAssets %} + {% include "FMElfinderBundle:Elfinder:helper/assets_css.html.twig" %} +{% endif %} + + +{% if includeAssets %} + {% include "FMElfinderBundle:Elfinder:helper/assets_js.html.twig" %} +{% endif %} + + + +