Html5 contenteditable

Alternatively, you could copy the HTML content of your “contenteditable” into a hidden textarea through JavaScript. When the user would submit the form (yes, should be part of a form), then the textarea would be posted. Lorsqu'un document HTML est passé à designMode, l'objet document expose la méthode execCommand qui permet d'exécuter des commandes pour manipuler le contenu de la zone modifiable, telle que les éléments form inputs ou contentEditable. # Make a HTML element editable with contenteditable Apply the contenteditable attribute to any HTML element. Voila! You can now edit them similar to how a or