Parcourir la source

#1115 Make it possible to override TinyMCE (and other editors) settings for different configurations.

Alex Trofimov il y a 8 ans
Parent
commit
a63a8cbc62
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      template/scripts/BxBaseEditorTinyMCE.php

+ 1 - 1
template/scripts/BxBaseEditorTinyMCE.php

@@ -164,7 +164,7 @@ EOS;
             $sPlugins = json_encode($aPlugins);
         }
         
-        $sCustomInit = str_replace('{toolbar}', $sToolbarItems, $sCustomInit);
+        $sCustomInit = str_replace('{toolbar}', $sToolbarItems ? $sToolbarItems : "[]", $sCustomInit);
         $sCustomInit = str_replace('{plugins}', $sPlugins, $sCustomInit);
         
         // detect language