<?php helpbutton("summaries", get_string("helpsummaries"), "moodle", true, true);
echo "<br />";
if ($usehtmleditor) {
- helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
+ helpbutton("richtext2", get_string("helprichtext"), "moodle", true, true);
} else {
- helpbutton("text", get_string("helptext"), "moodle", true, true);
+ helpbutton("text2", get_string("helptext"), "moodle", true, true);
}
?>
<br />
-<html><head>
-<meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body><h1>Using Smilies (emoticons)</h1>
+<h1>Using Smilies (emoticons)</h1>
<table align="center" border="1">
<tbody><tr valign="top">
<p>Note that the codes themselves are like little pictures - just turn your head to the left when looking at them</p>
-</body></html>
\ No newline at end of file
-<html><head>
-<meta http-equiv="content-type" content="text/html; charset=UTF-8"></head><body><h1>Using Smilies (emoticons)</h1>
+<h1>Using Smilies (emoticons)</h1>
<div id="emoticons">##emoticons_html##</div>
<div style="clear: both;"></div>
<p>To insert these icons in your text: just click the icon above, or type the associated text code directly in your text.</p>
<p>Note that the codes themselves are like little pictures - just turn your head to the left when looking at them</p>
-</body></html>
\ No newline at end of file
<li><a href="help.php?file=writing.html">Writing</a></li>
<li><a href="help.php?file=textformat.html">Formatting Text</a></li>
<li><a href="help.php?file=html.html">Editing HTML format</a></li>
- <li><a href="help.php?file=text.html">Editing Text format</a></li>
+ <li><a href="help.php?file=text2.html">Editing Text format</a></li>
<li><a href="help.php?file=markdown.html">Editing Markdown format</a></li>
- <li><a href="help.php?file=richtext.html">Using the Richtext HTML editor</a></li>
- <li><a href="help.php?file=emoticons.html">Using Smilies (emoticons)</a></li>
+ <li><a href="help.php?file=richtext2.html">Using the Richtext HTML editor</a></li>
+ <li><a href="help.php?file=emoticons2.html">Using Smilies (emoticons)</a></li>
</ul>
<p>Your line breaks will be retained, and blank lines will start new paragraphs.</p>
<p>Smiley characters such as :-) will automatically become their graphical equivalents.</p>
<p>You can even embed HTML code if you want to and it will be retained.</p>
-<p class="moreinfo"><a href="help.php?file=text.html">More info about Moodle auto-formatting</a></p>
+<p class="moreinfo"><a href="help.php?file=text2.html">More info about Moodle auto-formatting</a></p>
</ul>
<p>Unlike the Moodle auto-format, no automatic formatting is performed.</p>
<p class="moreinfo"><a href="help.php?file=html.html">More info about HTML in Moodle</a></p>
-<p class="moreinfo"><a href="help.php?file=richtext.html">More info about the Richtext HTML editor</a></p>
+<p class="moreinfo"><a href="help.php?file=richtext2.html">More info about the Richtext HTML editor</a></p>
</div>
<?php
if (!empty($SESSION->inserttextform)) {
$insertfield = "opener.document.forms['$SESSION->inserttextform'].$SESSION->inserttextfield";
+ echo " if(!opener.document.forms['$SESSION->inserttextform']){";
} else {
$insertfield = "opener.document.forms['theform'].message";
+ echo " if(!opener.document.forms['theform']){";
}
+ echo " return;";
+ echo " }";
echo " text = ' ' + text + ' ';\n";
echo " if ( $insertfield.createTextRange && $insertfield.caretPos) {\n";
echo " var caretPos = $insertfield.caretPos;\n";
$SESSION->inserttextform = $form;
$SESSION->inserttextfield = $field;
$imagetext = '<img src="' . $CFG->pixpath . '/s/smiley.gif" alt="" class="emoticon" style="margin-left:3px; padding-right:1px;width:15px;height:15px;" />';
- $help = helpbutton('emoticons', get_string('helpemoticons'), 'moodle', true, true, '', true, $imagetext);
+ $help = helpbutton('emoticons2', get_string('helpemoticons'), 'moodle', true, true, '', true, $imagetext);
if (!$return){
echo $help;
} else {
if (can_use_richtext_editor()) {
// Show a rich text html editor.
$str .= $this->gen_textarea(true, $text);
- $str .= helpbutton("richtext", get_string("helprichtext"), 'moodle', true, true, '', true);
+ $str .= helpbutton("richtext2", get_string("helprichtext"), 'moodle', true, true, '', true);
$str .= '<input type="hidden" name="field_' . $this->field->id . '_content1' . '" value="' . FORMAT_HTML . '" />';
} else {
helpbutton("questions", get_string("helpquestions"), "moodle", true, true);
echo "<br />";
if ($usehtmleditor) {
- helpbutton("richtext", get_string("helprichtext"), "moodle", true, true);
+ helpbutton("richtext2", get_string("helprichtext"), "moodle", true, true);
} else {
emoticonhelpbutton("theform", "message");
}