Jump to content


Photo

Formatting Tools for Textarea


  • Please log in to reply
6 replies to this topic

#1 ibanez270dx

ibanez270dx
  • Members
  • PipPipPip
  • Advanced Member
  • 53 posts

Posted 18 August 2006 - 11:20 PM

Hi,
How can I add formatting tools to my textarea like the ones here on PHP Freaks? You know, when you post a new thread or reply or whatever, and there are buttons above the textarea that do different things...?

Thanks,
- Jeff

#2 SharkBait

SharkBait
  • Members
  • PipPipPip
  • Advanced Member
  • 845 posts
  • LocationMetro Vancouver, BC

Posted 18 August 2006 - 11:25 PM

You want a WYSIWYG (what you see is what you get) editor?  I believe it has to do with Javascript. I don't know for sure but I've always wanted to look into it myself.



#3 ibanez270dx

ibanez270dx
  • Members
  • PipPipPip
  • Advanced Member
  • 53 posts

Posted 18 August 2006 - 11:28 PM

Yeah, is that what it's called? Anyone here have anything on it?

#4 freakus_maximus

freakus_maximus
  • Members
  • PipPipPip
  • Advanced Member
  • 177 posts

Posted 18 August 2006 - 11:29 PM

check out tinymce here http://tinymce.moxiecode.com/...it's really cool...and free...



#5 ryanlwh

ryanlwh
  • Staff Alumni
  • Advanced Member
  • 511 posts

Posted 18 August 2006 - 11:30 PM

Try google Javascript Rich Text Editors or Javascript WYSIWYG editors. You should get a lot of choices.

EDIT: freakus_maximus, nice find!
Please use EDIT * 100...
Please use
or [php] * 1000...

PLEASE READ THE POSTED SOLUTIONS CAREFULLY * 1000000...

#6 hitman6003

hitman6003
  • Members
  • PipPipPip
  • Advanced Member
  • 1,807 posts

Posted 19 August 2006 - 01:57 AM

tinymce is argueably the most feature rich, however, it isn't the only one.  FCKeditor (http://www.fckeditor.net/), Dojo (http://dojotoolkit.org/), Kupu (http://kupu.oscom.org/), and many others are available.

Be careful using these, as many of them are VERY large (I think tinymce is about 2 MB in all), so if a lot of your users have dialup, then they will hate it.  It can also eat up bandwidth quickly.  Caching will help some, but not enough if you have a good number of visitors.

#7 sivarts

sivarts
  • Members
  • PipPip
  • Member
  • 22 posts

Posted 19 August 2006 - 04:06 AM

I've used KTML from InterAkt online. The 4.0 version is free to download (after a account activation :-( )
http://www.interakto.../Free-Products/

it has worked well for smaller gigs thus far.
Cheers!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users