Browse code

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

Clarissa Walker authored on 2026/11/16 09:51:49
Showing 1 changed files
... ...
@@ -123,8 +123,10 @@ if($nid) {
123 123
 		}
124 124
 		else $comment = "";
125 125
 		$output .= "<table align=\"center\"><tr><td><strong>"._PENNAME.":</strong></td><td>".USERPENNAME."<INPUT type=\"hidden\" name=\"uname\" value=\"".USERPENNAME."\"></td></tr>
126
-		<tr><td><b>"._COMMENTS.":</b></td><td><TEXTAREA name=\"comment\" cols=\"35\" rows=\"6\">$comment</TEXTAREA></td></tr>
127
-		<tr><td><INPUT type=\"hidden\" name=\"nid\" value=\"$nid\"><INPUT name=\"submit\" id=\"submit\" type=\"submit\" value=\""._SUBMIT."\"></td></tr></table></form>";
126
+		<tr><td><b>"._COMMENTS.":</b></td><td><TEXTAREA name=\"comment\" id=\"comment\" cols=\"55\" rows=\"12\">$comment</TEXTAREA></td></tr>";
127
+		if($tinyMCE) 
128
+		$output .= "<tr><td></td><td><div class='tinytoggle'><input type='checkbox' name='toggle' onclick=\"toogleEditorMode('comment');\" checked><label for='toggle'>"._TINYMCETOGGLE."</label></div></td></tr>";
129
+		$output .= "<tr><td><INPUT type=\"hidden\" name=\"nid\" value=\"$nid\"><INPUT name=\"submit\" id=\"submit\" type=\"submit\" value=\""._SUBMIT."\"></td></tr></table></form>";
128 130
 	}
129 131
 	$tpl->assign("output", $output);
130 132
 }