From 745028b08fda39c2abd3e1ac3cc3321a6243a79b Mon Sep 17 00:00:00 2001 From: Den Date: Tue, 13 Sep 2016 18:50:31 +0300 Subject: [PATCH] Update StfalconTinymceExtension.php --- Twig/Extension/StfalconTinymceExtension.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Twig/Extension/StfalconTinymceExtension.php b/Twig/Extension/StfalconTinymceExtension.php index 082c331e..3f99ca1f 100644 --- a/Twig/Extension/StfalconTinymceExtension.php +++ b/Twig/Extension/StfalconTinymceExtension.php @@ -151,7 +151,10 @@ public function tinymceInit($options = array()) foreach ($config['theme'] as $themeName => $themeOptions) { if (isset($themeOptions['content_css'])) { // As there may be multiple CSS Files specified we need to parse each of them individually - $cssFiles = explode(',', $themeOptions['content_css']); + $cssFiles = $themeOptions['content_css']; + if (!is_array($themeOptions['content_css'])) { + $cssFiles = explode(',', $themeOptions['content_css']); + } foreach ($cssFiles as $idx => $file) { $cssFiles[$idx] = $this->getAssetsUrl(trim($file)); // we trim to be sure we get the file without spaces.