cstegner Posted May 3, 2006 Share Posted May 3, 2006 I have a new site idea I am working on and 90% of the site is going to be messaging. So I want this feature to be as nice and simple as possible however very powerful.So here is my question, is it possible to script something with PHP for messaging that when they type text they could highlight the text click the bold button and the text appears bold, etc? Like a WYSIWYG editor for website messages?If so where are some good resources (I have searched), if not what is the next best thing and where are some resources.Thanks as always-Chris Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted May 3, 2006 Share Posted May 3, 2006 That type of interaction with the user is best done with Javascript.Ken Quote Link to comment Share on other sites More sharing options...
.josh Posted May 3, 2006 Share Posted May 3, 2006 you cannot do things like that with php because php is parsed on the server and the output is sent to the client's webbrowser. all of those neat functions like that are done with client side languages like javascript. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted May 3, 2006 Share Posted May 3, 2006 Have a look at [a href=\"http://www.fckeditor.net/default.html\" target=\"_blank\"]FCKeditor[/a]. This is a free WYSIWYG editor you can use. It is free use and download as it is open source. Quote Link to comment Share on other sites More sharing options...
cstegner Posted May 3, 2006 Author Share Posted May 3, 2006 Wild thank you very much.I am at work now so I can't even view the demo through there firewall, but this looks like it might be perfect for my application.Questions before I even see the demo haha. I was reading thier wiki and this seems like such an easy script to implement. Basically you put there code instead of a text area input. Wow how smart. now here is my question. How does the person on the other side that recieevs the message view it. How do you pull the text back into the FCKeditor?Would you just stick the variable that is holding the saved text right into the default text line of there code?thansk for any help. This looks liek it will be PERFECT!!! Quote Link to comment Share on other sites More sharing options...
todd3834 Posted May 3, 2006 Share Posted May 3, 2006 You may also want to try out SPAW, much like FCKeditor although FCKeditor looks like it has more features so SPAW might not be a better option but just another script you may want to check out before you make the decision... [a href=\"http://sourceforge.net/projects/spaw/\" target=\"_blank\"]http://sourceforge.net/projects/spaw/[/a] 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.