Additions to cope with richtext editor being used in some forms.

This commit is contained in:
moodler
2002-10-10 07:26:10 +00:00
parent fa7d70c8c1
commit 0095d5cd3c
8 changed files with 125 additions and 13 deletions
+10 -5
View File
@@ -2,14 +2,19 @@
<SCRIPT LANGUAGE="JavaScript">
<!-- //hide
function fillmessagebox(text) {
document.form.message.value = text;
document.form.message.value = text;
}
function openpopup(url,name,height,width) {
fullurl = "<?=$CFG->wwwroot ?>" + url;
options = "menubar=0,location=0,scrollbars,resizable,width="+width+",height="+height;
windowobj = window.open(fullurl,name, options);
windowobj.focus();
fullurl = "<?=$CFG->wwwroot ?>" + url;
options = "menubar=0,location=0,scrollbars,resizable,width="+width+",height="+height;
windowobj = window.open(fullurl,name, options);
windowobj.focus();
}
function copyrichtext(textname) {
textname.value = document.richedit.docHtml;
return true;
}
<? if ($focus) { echo "function setfocus() { document.$focus.focus() }\n"; } ?>