Permalink
Browse files

MDL-25474 do not use html editor for css and js editing

  • Loading branch information...
1 parent 1ded6e1 commit 6d5b79c51d8d20f2ce5e6cc8c26679932a1aabe4 @skodak skodak committed Dec 2, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 mod/data/templates.php
@@ -158,6 +158,11 @@
editors_head_setup();
$format = FORMAT_HTML;
+
+if ($mode === 'csstemplate' or $mode === 'jstemplate') {
+ $disableeditor = true;
+}
+
if ($disableeditor) {
$format = FORMAT_PLAIN;
}

0 comments on commit 6d5b79c

Please sign in to comment.