Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Editing" user text on the fly?

I would like to implements something like vBullettin (or stackoverflow) does. When the user clicks "edit" the HTML text is converted to plain text into a <textarea></textarea> ready for the editing.

How would you implemeent something like that? Note I can use jQuery.

I would like especially know the authentication part (if users clicks "edit" on soemone else comments there is a warning)

Thanks

like image 920
dynamic Avatar asked Mar 30 '11 17:03

dynamic


1 Answers

Check out this jQuery plugin for inline editing

http://www.appelsiini.net/projects/jeditable

like image 110
stephen776 Avatar answered Oct 25 '22 13:10

stephen776