Browse code

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

Clarissa Walker authored on 2026/11/15 13:34:11
Showing 1 changed files
... ...
@@ -54,7 +54,9 @@ include("includes/pagesetup.php");
54 54
 			<option>"._MISSING."</option>
55 55
 		</select>
56 56
 		<input type='hidden' name='reportpage' value='".descript($_GET['url'])."'></td></tr>";
57
-		$output .= "<tr><td><label for='comments'>"._COMMENTS.":</label></td><td> <TEXTAREA  class='textbox' name='comments' cols='50' rows='6'></TEXTAREA></td></tr>";
57
+		$output .= "<tr><td><label for='comments'>"._COMMENTS.":</label></td><td> <TEXTAREA  class='textbox' name='comments' id='comments' cols='50' rows='6'></TEXTAREA></td></tr>";
58
+		if($tinyMCE) 
59
+		$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>";
58 60
 		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>";
59 61
 		$output .= "<tr><td colspan='2'><div style='text-align: center;'><INPUT name='submit' class='button' type='submit' value='"._SUBMIT."'></div></td></tr></table></form>";
60 62
 	}
... ...
@@ -62,4 +64,4 @@ include("includes/pagesetup.php");
62 64
 	$tpl->assign( "output", $output );	
63 65
 	$tpl->printToScreen();
64 66
 	dbclose( );
65
-	?>
66 67
\ No newline at end of file
68
+	?>