diff --git a/main/inc/lib/fckeditor/fcktemplates.xml.php b/main/inc/lib/fckeditor/fcktemplates.xml.php
index 714b5e146c..7f7b4dd9f7 100644
--- a/main/inc/lib/fckeditor/fcktemplates.xml.php
+++ b/main/inc/lib/fckeditor/fcktemplates.xml.php
@@ -21,8 +21,12 @@ $css = loadCSS(api_get_setting('stylesheets'));
// load libreries js
$js = '';
if (api_get_setting('show_glossary_in_documents') != 'none') {
- $js .= ''.PHP_EOL;
- $js .= '';
+ $js .= ''.PHP_EOL;
+ if (api_get_setting('show_glossary_in_documents') == 'ismanual') {
+ $js .= '';
+ } else {
+ $js .= '';
+ }
}
// setting some paths