From a83f0c7bbc76737e9a6e5e83d758dc25f0a9d4d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20W=C4=85tor?= Date: Fri, 21 Jan 2022 13:42:05 +0100 Subject: [PATCH] Fix elfinder_tinymce_init4 duplicate definition (#473) There was double elfinder_tinymce_init4 definition which made it impossible to load tinymce4 resource. --- src/Twig/Extension/FMElfinderExtension.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Twig/Extension/FMElfinderExtension.php b/src/Twig/Extension/FMElfinderExtension.php index 8795205..9b3ada7 100644 --- a/src/Twig/Extension/FMElfinderExtension.php +++ b/src/Twig/Extension/FMElfinderExtension.php @@ -30,7 +30,7 @@ public function getFunctions() return [ new TwigFunction('elfinder_tinymce_init', [$this, 'tinymce'], $options), new TwigFunction('elfinder_tinymce_init4', [$this, 'tinymce4'], $options), - new TwigFunction('elfinder_tinymce_init4', [$this, 'tinymce5'], $options), + new TwigFunction('elfinder_tinymce_init5', [$this, 'tinymce5'], $options), new TwigFunction('elfinder_summernote_init', [$this, 'summernote'], $options), ]; }