From 449c5516fd571173a70eb11b3c3a0f4e14706348 Mon Sep 17 00:00:00 2001 From: Al Ganiev Date: Mon, 16 Nov 2015 04:15:57 +1000 Subject: [PATCH] fm_tinymce_bundle --- Controller/ElFinderController.php | 14 +++++++ Resources/views/Elfinder/fm_tinymce.html.twig | 40 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 Resources/views/Elfinder/fm_tinymce.html.twig 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 %} + +
+ +