Jump to content


Photo

Is WYSIWYG on the internet possible with PhP?


  • Please log in to reply
5 replies to this topic

#1 cstegner

cstegner
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 03 May 2006 - 02:25 PM

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

#2 kenrbnsn

kenrbnsn
  • Staff Alumni
  • Advanced Member
  • 8,235 posts
  • LocationHillsborough, NJ, USA

Posted 03 May 2006 - 02:47 PM

That type of interaction with the user is best done with Javascript.

Ken

#3 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 03 May 2006 - 05:27 PM

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.


Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 03 May 2006 - 06:36 PM

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.

#5 cstegner

cstegner
  • Members
  • PipPipPip
  • Advanced Member
  • 39 posts

Posted 03 May 2006 - 08:09 PM

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!!!

#6 todd3834

todd3834
  • New Members
  • Pip
  • Newbie
  • 8 posts

Posted 03 May 2006 - 08:17 PM

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]




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users