jandrox_ox Posted July 13, 2008 Share Posted July 13, 2008 Basically, a person that doesn't know html needs to be able to edit a website. I already made everything so that it loads from a database and also made it so that he can edit a database once he logs in into a page. But he also needs to be able to style text (and now he can only add plain text). How can I make that (basically something similar to what you write your post in here) Thanks in advance Link to comment https://forums.phpfreaks.com/topic/114500-need-help-with-script-text-area-input-styling/ Share on other sites More sharing options...
JasonLewis Posted July 13, 2008 Share Posted July 13, 2008 Search around for BBCode, google and Pixel2Life should turn up some good results for your problem. Link to comment https://forums.phpfreaks.com/topic/114500-need-help-with-script-text-area-input-styling/#findComment-588785 Share on other sites More sharing options...
Third_Degree Posted July 13, 2008 Share Posted July 13, 2008 To get you started $str = preg_replace( "#\[b\](.*?)\[/b\]#", "<b>$1</b>", $str ); With this code an input of [b]Hello[/b] will yield Hello Link to comment https://forums.phpfreaks.com/topic/114500-need-help-with-script-text-area-input-styling/#findComment-588788 Share on other sites More sharing options...
chronister Posted July 13, 2008 Share Posted July 13, 2008 Another solution is javascript wysiwyg http://www.dynamicdrive.com/dynamicindex16/openwysiwyg/index.htm http://www.dynamicdrive.com/dynamicindex16/richtexteditor/index.htm I prefer the openwysiwyg editor.... it is more robust and easy to use but has it's limitations. Link to comment https://forums.phpfreaks.com/topic/114500-need-help-with-script-text-area-input-styling/#findComment-588811 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.