From 6a1e688f839f823265d34c8fbf16ee18b8fbac4a Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 3 Nov 2003 16:12:59 +0000 Subject: [PATCH] Some fixes for using the new editor --- mod/journal/edit.html | 11 ++++------- mod/journal/edit.php | 14 ++++++++------ 2 files changed, 12 insertions(+), 13 deletions(-) diff --git a/mod/journal/edit.html b/mod/journal/edit.html index deaaecf1df..038c00a56e 100644 --- a/mod/journal/edit.html +++ b/mod/journal/edit.html @@ -1,4 +1,4 @@ -
action="edit.php"> +
@@ -18,7 +18,9 @@
+
text); ?> +

id ?>"> "> "> -

+

- diff --git a/mod/journal/edit.php b/mod/journal/edit.php index 2b7361d2a7..3906bb764c 100644 --- a/mod/journal/edit.php +++ b/mod/journal/edit.php @@ -66,12 +66,10 @@ if ($usehtmleditor = can_use_richtext_editor()) { $defaultformat = FORMAT_HTML; - $onsubmit = "onsubmit=\"copyrichtext(theform.text);\""; } else { $defaultformat = FORMAT_MOODLE; - $onsubmit = ""; } - + if (empty($entry)) { $entry->text = ""; $entry->format = $defaultformat; @@ -83,14 +81,18 @@ id\">$journal->name -> $stredit", "theform.text", "", true, "", navmenu($course, $cm)); - echo "
\n"; + echo "
\n"; - print_simple_box( text_to_html($journal->intro) , "center"); + print_simple_box( format_text($journal->intro) , "center"); - echo "
"; + echo "
"; include("edit.html"); + if ($usehtmleditor) { + use_html_editor(); + } + print_footer($course); ?> -- 2.39.5