views:

343

answers:

6

I would make to make a small WYSIWYG editor similar to the one used by StackOverflow. Basically, it would have buttons like [quote], and when that button is clicked, [quote] [/quote] should be inserted in the textarea where the cursor is or at the end of all other text. If the [quote][/quote] could be highlighted in some way that would be even more excellent, but its not required.

Is there any WYSIWYG editor already available where you can add custom buttons, with custom text being added to the textbox as a result?

+1  A: 

TinyMCE Works well for me.

Austin Fitzpatrick
+1  A: 

Sure, use the one stackoverflow does.

jvenema
+2  A: 

Why not using WMD Editor (the one used by stackoverflow) and configure its available buttons?

Toto
+1  A: 

Stack Overflow uses Markdown for formatting. Because Markdown is significantly simpler to generate and deal with than HTML, I'd imagine there are lots of good choices. This one seems to match all the functionality of the one used by Stack Overflow, perhaps it's the same one!

If you're looking for something non-Markdown, then TinyMCE or CKEditor might be what you want.

bcherry
Not sure Jeff is that big a fan - http://www.codinghorror.com/blog/2009/12/responsible-open-source-code-parenting.html
Dan Diplo
It IS the same.
Toto
I have discovered that based on the other answers posted besides mine :) It also looks awesome, and I think I will be integrating it into everything quite soon...
bcherry
+3  A: 

There's a good list of ten of the top ones on this blog.

Dan Diplo
Thanks, I used Jquery MarkItUp from that list, it allows custom buttons to be added with custom output. Very cool!
Click Upvote
A: 

You can use Microsoft Expression Web, it is free and comes in a bundle pack with other expression applications. It has worked for me very well and I haven't had a problem with it. Also W3Schools is a great source for Tutorials on code and such.

Sean