contact.php: add tinyMCE toggle to form, also add id to textarea in order for it to work in tinyMCE 6.x and later
contact.php: add tinyMCE toggle to form, also add id to textarea in order for it to work in tinyMCE 6.x and later

--- a/contact.php
+++ b/contact.php
@@ -54,7 +54,9 @@
 			<option>"._MISSING."</option>
 		</select>
 		<input type='hidden' name='reportpage' value='".descript($_GET['url'])."'></td></tr>";
-		$output .= "<tr><td><label for='comments'>"._COMMENTS.":</label></td><td> <TEXTAREA  class='textbox' name='comments' cols='50' rows='6'></TEXTAREA></td></tr>";
+		$output .= "<tr><td><label for='comments'>"._COMMENTS.":</label></td><td> <TEXTAREA  class='textbox' name='comments' id='comments' cols='50' rows='6'></TEXTAREA></td></tr>";
+		if($tinyMCE) 
+		$output .= "<tr><td></td><td><div class='tinytoggle'><input type='checkbox' name='toggle' onclick=\"toogleEditorMode('comments');\" checked><label for='toggle'>"._TINYMCETOGGLE."</label></div></td></tr>";
 		if(!USERUID && !empty($captcha)) $output .= "<tr><td><span class='label'>"._CAPTCHANOTE."</span></td><td><img width=120 height=30 src='"._BASEDIR."includes/button.php' alt='CAPTCHA image'><br /><br /><input MAXLENGTH=5 SIZE=5 name='userdigit' type='text' value=''></td></tr>";
 		$output .= "<tr><td colspan='2'><div style='text-align: center;'><INPUT name='submit' class='button' type='submit' value='"._SUBMIT."'></div></td></tr></table></form>";
 	}
@@ -63,3 +65,4 @@
 	$tpl->printToScreen();
 	dbclose( );
 	?>
+