Reputation: 889
I'd like to offer users the ability to style their submitted content, however I'm not sure I need a full blown wysiwyg editor. My requirements are:
A live preview would also be handy.
Any ideas on my options, and/or the best way to approach this? Perhaps a simplified or customizable markdown editor?
Upvotes: 0
Views: 189
Reputation: 33954
BlueCloth isn't a bad choice - I've used it with some success. It's a markdown parser that you can have operate on your text fields/textarea fields that provides a syntax similar to the syntax in use on StackOverflow, and similar to your requirements.
You can specify which types of inputs are HTML escaped, and which ones are treated as raw HTML, so that links and <embed>
tags and such can either be displayed in your views as plain text, or treated as HTML.
Upvotes: 1