Permalink
Browse files

Prevent possible error when editing non-HTML pages

  • Loading branch information...
1 parent 4c1ced2 commit 5c716ac2b44bd72c7832366efd96de57ccfd2a95 moodler committed Jun 2, 2003
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/resource/details.php
View
@@ -214,7 +214,7 @@
</center>
</form>
<?
- if ($usehtmleditor) {
+ if ($usehtmleditor and $form->type == HTML) {
print_richedit_javascript("theform", "alltext", "yes");
}
print_simple_box_end();

0 comments on commit 5c716ac

Please sign in to comment.