Nothadoth Posted August 22, 2007 Share Posted August 22, 2007 im using a prescripted editor. i've managed to get it to work previously, but now it wont. im even using the exact same code i used to use. the problem i'm having is that when the form is submitted it won't carry the variable and display it in the alert box. here is the code: <form name="editcont" action="admin2.php?page=contedit&id=<?php echo $editcont['id']; ?>" method="post" onsubmit="return submitForm();"> <script language="JavaScript" type="text/javascript"> <!-- function submitForm() { //make sure hidden and iframe values are in sync before submitting form //to sync only 1 rte, use updateRTE(rte) //to sync all rtes, use updateRTEs //updateRTE('rte1'); updateRTE('rte'); alert("rte = " + document.editcont.rte.value); //change the following line to true to submit form return false; } //Usage: initRTE(imagesPath, includesPath, cssFile) initRTE("images/", "", ""); //--> </script> <noscript><p><b>Javascript must be enabled to use this form.</b></p></noscript> <script language="JavaScript" type="text/javascript"> <!-- //Usage: writeRichText(fieldname, html, width, height, buttons, readOnly) writeRichText('rte', '', 520, 200, true, false); //--> </script> <p><input type="submit" name="rtenewcont" value="Save new Content"></p> </form> there are other files to go with it, but they are just css styling files and a javascript file that just has the html coding etc. for the rich text editor. someone please help, thank you Link to comment https://forums.phpfreaks.com/topic/66079-solved-rich-text-editor-help/ Share on other sites More sharing options...
Nothadoth Posted August 22, 2007 Author Share Posted August 22, 2007 hmm i cracked it. its not compatable with the opera explorer i was using. Link to comment https://forums.phpfreaks.com/topic/66079-solved-rich-text-editor-help/#findComment-330492 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.