Nothadoth Posted July 5, 2007 Share Posted July 5, 2007 hey guys, i really need help. im struggling to hell to find a premade script for what i need. I have my content stored in a database. I need a rich text editor (so the user doesnt need to include HTML) so they can edit contact. So a rich text editor that displays whats in the current content field and can be edited so on submit it updates the field to have the new text. Get what i mean? can anyone help me find one? thanks Quote Link to comment Share on other sites More sharing options...
DeathStar Posted July 5, 2007 Share Posted July 5, 2007 Okay.. Make one. <?php $contents = file_get_contents('script.txt'); if ($_POST){ $contents = $_POST['contents']; $open = fopen('script.txt', 'w'); $do = fwrite($open, $contents); fclose($open); if (isset($do)){ echo 'Saved.'; } else { echo 'Failed'; } } echo '<form action="index.php" method="post"><textarea name="contents">' . $contents . '</textarea><input type="submit" value="Save"></form>'; ?> Quote Link to comment Share on other sites More sharing options...
Nothadoth Posted July 5, 2007 Author Share Posted July 5, 2007 i dont know how to make one. thats why im asking for a premade script. Quote Link to comment Share on other sites More sharing options...
john010117 Posted July 5, 2007 Share Posted July 5, 2007 You should post in the "Freelancers" area then. Don't expect us to make you one here. Quote Link to comment Share on other sites More sharing options...
Nothadoth Posted July 5, 2007 Author Share Posted July 5, 2007 I need it so that when you go down a line in the text box it automatically incorporated html. So for example in the box you write: "Hello, Test." Instead of it coming out as "Hello, Test." it needs to generate "Hello,<BR>Test." Quote Link to comment Share on other sites More sharing options...
Nothadoth Posted July 5, 2007 Author Share Posted July 5, 2007 So why is everyone an arsehole here? Jesus. I ASKED for a premade script. So stop with the attitude. If you aren't willing to help don't post. Quote Link to comment Share on other sites More sharing options...
john010117 Posted July 5, 2007 Share Posted July 5, 2007 But then YOU should post in the RIGHT forum. Quote Link to comment Share on other sites More sharing options...
DeathStar Posted July 5, 2007 Share Posted July 5, 2007 We do not make script for you. Post in the freelancers section. Quote Link to comment Share on other sites More sharing options...
john010117 Posted July 5, 2007 Share Posted July 5, 2007 Here's the link to it. Quote Link to comment Share on other sites More sharing options...
Nothadoth Posted July 5, 2007 Author Share Posted July 5, 2007 thanks. but there was still no need to be an ass Quote Link to comment Share on other sites More sharing options...
AndyB Posted July 5, 2007 Share Posted July 5, 2007 TinyMCE - http://tinymce.moxiecode.com/ FCKEditor - http://www.fckeditor.net/ It's not a freelancing question (unless you actually want one made or implemented for you) Quote Link to comment Share on other sites More sharing options...
Hypnos Posted July 5, 2007 Share Posted July 5, 2007 TinyMCE is a good one. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.