MDL-5671 html editor can now be switched off on the fly while editing database templates; removed editor button from js and css template

This commit is contained in:
skodak
2006-12-10 22:15:15 +00:00
parent af7dc2f8db
commit f56f05dab1
+1 -1
View File
@@ -211,7 +211,7 @@
}
echo '</select>';
echo '<br /><br /><br /><br /><input type="submit" name="defaultform" value="'.get_string('resettemplate','data').'" />';
if (can_use_html_editor()) {
if (can_use_html_editor() && ($mode != 'csstemplate') && ($mode != 'jstemplate')) {
echo '<br /><br />';
if ($editor) {
$switcheditor = get_string('editordisable', 'data');