Possible duplicate:
HTML / JAVASCRIPT: disable HTML CONTENT in contentEditable = true
I want to know how to disable or manage html elements, tags and drag and drop, resize the image and everything that comes with the element contentEditable contentEditable="true" .
Before you ask why: Right-click on this page: Control or Command+A go to http://jsbin.com/itugu/3 click text, then click "Control or Command + V and the entire stack stream is inserted.
http://www.facebook.com , they use <div> too instead of <textarea> , and everything is disabled, which is exactly what I want to know how they did it? :)
Please, if you know any resources, links to this, publish it!
Adam source share