diff --git a/mod/data/templates.php b/mod/data/templates.php
index 046241f20f4..453a97e1671 100755
--- a/mod/data/templates.php
+++ b/mod/data/templates.php
@@ -211,7 +211,7 @@
}
echo '';
echo '
';
- if (can_use_html_editor()) {
+ if (can_use_html_editor() && ($mode != 'csstemplate') && ($mode != 'jstemplate')) {
echo '
';
if ($editor) {
$switcheditor = get_string('editordisable', 'data');