Reputation: 1432
How can I achieve the exact same effect in Stack Overflow that makes the post preview, where the user types in a <textarea>
, and content is written to a <div>
?
Upvotes: 2
Views: 90
Reputation: 13614
Here's a very quick mockup in jsFiddle. This has absolutely no security whatsoever, so you'll want to implement that to avoid script injection and the like.
Upvotes: 3