Ad

Change Content On The Fly

- 1 answer

I am currently working in dynamic template creation where user can drag any defined element from source area into destination area. Now after dropping user can modify it's text (change / add new).

I have done dragging and dropping but how to change it's text after dropping. ?

enter image description here

Is there any javascript library available to help me out?

Ad

Answer

Have you taken look at the HTML contenteditable Attribute?

<div contenteditable="true">This div is editable. Try to change this text.</div>

Ad
source: stackoverflow.com
Ad