ded Posted January 4, 2009 Share Posted January 4, 2009 Hello, Created a website in which I give the user the ability to update the webpage text. I want to give them the ability to add bold, italis, color, etc etc etc to the text. How is this done? Any examples out there? Regards, DED Link to comment https://forums.phpfreaks.com/topic/139467-solved-add-bold-button-to-form-to-update-database/ Share on other sites More sharing options...
PFMaBiSmAd Posted January 4, 2009 Share Posted January 4, 2009 You could probably examine (or just use) existing scripts - http://dynamicdrive.com/dynamicindex16/openwysiwyg/index.htm http://dynamicdrive.com/dynamicindex16/richtexteditor/index.htm Link to comment https://forums.phpfreaks.com/topic/139467-solved-add-bold-button-to-form-to-update-database/#findComment-729561 Share on other sites More sharing options...
ded Posted January 4, 2009 Author Share Posted January 4, 2009 How do I make the line below agreeable within php? echo '<script language="JavaScript">generate_wysiwyg("newcontents");</script>'; Regards, DED Link to comment https://forums.phpfreaks.com/topic/139467-solved-add-bold-button-to-form-to-update-database/#findComment-729574 Share on other sites More sharing options...
xtopolis Posted January 4, 2009 Share Posted January 4, 2009 Either: ?> <script type="text/javascript">generate_wysiwyg('newcontents');</script> <?php more php or echo "<script type='text/javascript'>generate_wysiwyg('newcontents');</script>"; Link to comment https://forums.phpfreaks.com/topic/139467-solved-add-bold-button-to-form-to-update-database/#findComment-729576 Share on other sites More sharing options...
ded Posted January 5, 2009 Author Share Posted January 5, 2009 Excellent!!! Works great...thank you very much. Link to comment https://forums.phpfreaks.com/topic/139467-solved-add-bold-button-to-form-to-update-database/#findComment-729599 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.