From: skodak Date: Sun, 10 Dec 2006 22:15:15 +0000 (+0000) Subject: MDL-5671 html editor can now be switched off on the fly while editing database templa... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f56f05dab11910ecbf2e8508fd104f0af9ce2258;p=moodle.git MDL-5671 html editor can now be switched off on the fly while editing database templates; removed editor button from js and css template --- diff --git a/mod/data/templates.php b/mod/data/templates.php index 046241f20f..453a97e167 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');