PHP beginner |
|
TinyMCE gebruikt wel een textarea.
dit is de code voor TinyMCE:
<script language="javascript" type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
theme : "advanced",
mode: "exact",
elements : "berichtreactie",
theme_advanced_toolbar_location : "top",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator,"
+ "justifyleft,justifycenter,justifyright,justifyfull,formatselect,"
+ "bullist,numlist,outdent,indent,link,unlink,charmap",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
height:"200px",
width:"480px",
file_browser_callback : 'myFileBrowser'
});
function myFileBrowser (field_name, url, type, win) {
var fileBrowserWindow = new Array();
fileBrowserWindow['title'] = 'File Browser';
fileBrowserWindow['file'] = "my_cms_script.php" + "?type=" + type;
fileBrowserWindow['width'] = '500';
fileBrowserWindow['height'] = '400';
tinyMCE.openWindow(fileBrowserWindow, { window : win, resizable : 'yes', inline : 'yes' });
return false;
}
</script>
<textarea id="berichtreactie" name="berichtreactie"></textarea>
<div align="center">
<input type="submit" name="submit" value="Reactie plaatsen" />
<input type="reset" name="reset" value="Reactie wissen" />
</div>
<script language="javascript" type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script> <script language="javascript" type="text/javascript"> tinyMCE.init({ theme : "advanced", mode: "exact", elements : "berichtreactie", theme_advanced_toolbar_location : "top", theme_advanced_buttons1 : "bold,italic,underline,strikethrough,separator," + "justifyleft,justifycenter,justifyright,justifyfull,formatselect," + "bullist,numlist,outdent,indent,link,unlink,charmap", theme_advanced_buttons2 : "", theme_advanced_buttons3 : "", height:"200px", width:"480px", file_browser_callback : 'myFileBrowser' }); function myFileBrowser (field_name, url, type, win) { var fileBrowserWindow = new Array(); fileBrowserWindow['title'] = 'File Browser'; fileBrowserWindow['file'] = "my_cms_script.php" + "?type=" + type; fileBrowserWindow['width'] = '500'; fileBrowserWindow['height'] = '400'; tinyMCE.openWindow(fileBrowserWindow, { window : win, resizable : 'yes', inline : 'yes' }); return false; } </script> <textarea id="berichtreactie" name="berichtreactie"></textarea> <div align="center"> <input type="submit" name="submit" value="Reactie plaatsen" /> <input type="reset" name="reset" value="Reactie wissen" /> </div>
TinyMCE werkt gewoon perfect alleen het quote scriptje niet i.s.m. TinyMCE. |