I need to make a div layer so that when you click on it you will have your cursor there blinking and you can insert/delete text just like >
>
You can make the div editable by setting its contentEditable attribute / property to true. However, for anything that is slightly more powerful or flexible then very basic editing, you might want to look at existing solutions such as:
contentEditable
true