html documentation: Attribut Contenteditable. Exemple
This is an editable paragraph.
En cliquant sur le paragraphe, son contenu peut être modifié de la même manière qu'un champ de saisie de texte. HTML5 contenteditable is a simple and handy option for rich text editing features on web pages. Say, for exampleClick to edit this text
will make the paragraph tag editable and behaves like input field The contentEditable attribute makes this task a lot easier. All you have to do is set this attribute to true and standard HTML5 elements will become editable. In this tutorial, we will create an inline rich text editor based on this feature. The Basics. This attribute can take three valid values. One of the lesser-known HTML attributes is contenteditable. This attribute allows you to turn a standard read-only HTML element into an interactive, rich-text editor. When Tim Berners-Lee built the first web browser in 1990, he created modes for both browsing and editing HTML documents. However as the web grew, browsers transitioned to a more To make a browser page editable, it uses an HTML5 feature called the contenteditable. It is an HTML attribute, that allow users to edit the contents inside an element. Related: HTML5 Semantic elements and its usage. You can do more. You can experiment wiFixez l'attribut contenteditable à true dans votre élément HTML. Ça peut être fait dans quasiment tous les éléments HTML. Exemples. Un exemple simple : Ce texte peut être édité par l'utilisateur.
Assume that we want to have a placeholder for given contenteditable element: < div contenteditable>
HTML 5.1 La définition de 'contenteditable' dans cette spécification. Recommendation: Dérivation de HTML Living Standard, aucune modification depuis HTML5: HTML5 La définition de 'contenteditable' dans cette spécification. Recommendation: Dérivation de HTML Living Standard, définition initiale.
contenteditable.html. . .
. .