Task 1

Text Editor. 
Demo: http://jsfiddle.net/39hLs/