diff --git a/lib/moodlelib.php b/lib/moodlelib.php index ea013a4d141..1faf0ba8237 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -314,6 +314,25 @@ function print_editing_switch($courseid) { } } +function print_textarea($richedit, $rows, $cols, $width, $height, $name, $value="") { + global $CFG, $THEME; + + if ($richedit) { + echo "wwwroot/lib/rte/richedit.html\""; + echo " width=\"$width\" height=\"$height\" "; + echo " type=\"text/x-scriptlet\" VIEWASTEXT>"; + echo ""; + } else { + echo ""; + } +} + + function update_course_icon($courseid) { global $CFG, $USER; diff --git a/mod/forum/post.html b/mod/forum/post.html index ca32b430bbb..765a41fef35 100644 --- a/mod/forum/post.html +++ b/mod/forum/post.html @@ -18,15 +18,7 @@ - - - - - - - - + message); ?> @@ -38,9 +30,7 @@

:

- format, ""); ?> + format, ""); ?>   diff --git a/mod/journal/edit.html b/mod/journal/edit.html index 8a1e62af6da..6b76d8ad597 100644 --- a/mod/journal/edit.html +++ b/mod/journal/edit.html @@ -1,12 +1,5 @@
action="edit.php"> - - - - - - - + text); ?>