Browse code

blocks/info/admin.php: add id to textarea in order for the tinyMCE toggle to work in tinyMCE 6.x and later

Clarissa Walker authored on 2026/11/13 18:30:24
Showing 1 changed files
... ...
@@ -28,11 +28,11 @@ else include_once("blocks/info/en.php");
28 28
 		else $template = "";
29 29
 		$output .= "<div style='margin: 1em auto; width: 80%;'><b>"._CURRENT.":</b><br /><div class=\"tblborder\" style=\"text-align: left; padding: 4px; margin: 0 auto;\">$content</div><br />";
30 30
 		$output .= "<form method='POST' enctype='multipart/form-data' name='blockadmin' action='admin.php?action=blocks&admin=info'>
31
-			<label for='template'>"._TEMPLATE.":</label><br /><textarea name='template' rows='5' cols='50' style='width: 100%;'>$template</textarea>";
31
+			<label for='template'>"._TEMPLATE.":</label><br /><textarea name='template' id='template' rows='5' cols='50' style='width: 100%;'>$template</textarea>";
32 32
 		if($tinyMCE) $output .= "<div style='display: block; margin: 0; padding: 0;'><input type='checkbox' name='toggle' onclick=\"toogleEditorMode('template');\" checked><label for='toggle'>"._TINYMCETOGGLE."</label></div>";
33 33
 		$output .= "<label for='style'>"._DISPLAY.": </label><select name='style'class='textbox' ><option value='0'".(!$style ? " selected" : "").">"._CHART."</option>
34 34
 				<option value='1'".($style == 1 ? " selected" : "").">"._NARRATIVE."</option>
35 35
 				<option value='2'".($style == 2 ? " selected" : "").">"._VARIABLES."</option></select><br />
36 36
 			<INPUT type='submit' class='button' name='submit' value='"._SUBMIT."'></form></div>";
37 37
 	}
38
-?>
39 38
\ No newline at end of file
39
+?>