Permalink
Browse files
fix a js error when syntax_plugin is not html/ckeditor
- Loading branch information...
Showing
with
8 additions
and
4 deletions.
-
+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