Răsfoiți Sursa

Fix js error.

Julio Montoya 10 ani în urmă
părinte
comite
08021c089c
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      main/template/default/layout/head.tpl

+ 1 - 1
main/template/default/layout/head.tpl

@@ -41,7 +41,7 @@ plugins.forEach(function(plugin) {
 **/
 **/
 var showTemplates = function (ckeditorName) {
 var showTemplates = function (ckeditorName) {
     var editorName = 'content';
     var editorName = 'content';
-    if (ckeditorName.length > 0) {
+    if (ckeditorName && ckeditorName.length > 0) {
         editorName = ckeditorName;
         editorName = ckeditorName;
     }
     }
     CKEDITOR.editorConfig(CKEDITOR.config);
     CKEDITOR.editorConfig(CKEDITOR.config);