Permalink
Browse files

fix a js error when syntax_plugin is not html/ckeditor

  • Loading branch information...
peterdd committed Jan 23, 2018
1 parent a6ad0ef commit 7cebb66348c3bba1a3337d7634fd08be8239b5fc
Showing with 8 additions and 4 deletions.
  1. +8 −4 includes/class.tpl.php
@@ -911,10 +911,14 @@ public static function textarea($name, $rows, $cols, $attrs = null, $content = n
}
$return .= '</textarea>';
//Activate CkEditor on TextAreas.
$return .= "<script>
CKEDITOR.replace( '".$name."', { entities: true, entities_latin: false, entities_processNumerical: false } );
</script>";
# Activate CkEditor on textareas
if($conf['general']['syntax_plugin']=='html'){
$return .= "
<script>
CKEDITOR.replace( '".$name."', { entities: true, entities_latin: false, entities_processNumerical: false } );
</script>";
}
return $return;
}
}

0 comments on commit 7cebb66

Please sign in to comment.