Sets whether the contents of the object are editable.
This attribute is primarily used for creating rich text editing controls, but the contentEditable attribute allows more than just text editing, the user can edit all content within this control.
Note: the contentEditable attribute does not have any effect for disabled elements (DISABLED attribute).Child elements that have layout inherit the value of the contentEditable attribute, so if you want to place a non-editable element within an editable one, you must set the contentEditable attribute to false.
String that sets the type of the editability.
One of the following values:
|Default. Inherited from object's parent.|
|Contents are not editable.|
|Content are editable.|
Example HTML code 1:
This example illustrates the use of the contentEditable attribute:
Did you find this example helpful?
Supported by tags:
User Contributed Comments