From 6d5b79c51d8d20f2ce5e6cc8c26679932a1aabe4 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Thu, 2 Dec 2010 05:35:26 +0000 Subject: [PATCH] MDL-25474 do not use html editor for css and js editing --- mod/data/templates.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mod/data/templates.php b/mod/data/templates.php index 73263018a2c..ebfebde296f 100755 --- a/mod/data/templates.php +++ b/mod/data/templates.php @@ -158,6 +158,11 @@ if (empty($data->addtemplate) and empty($data->singletemplate) and editors_head_setup(); $format = FORMAT_HTML; + +if ($mode === 'csstemplate' or $mode === 'jstemplate') { + $disableeditor = true; +} + if ($disableeditor) { $format = FORMAT_PLAIN; } -- 2.43.0