HTMLElement: contentEditable property

The contentEditable property of the HTMLElement interface specifies whether or not the element is editable.

This enumerated attribute can have the following values:

You can use the HTMLElement.isContentEditable property to test the computed boolean value of this property.

If the attribute is missing or its value is invalid, its value is inherited from its parent element: so the element is editable (or not) based on the parent element.

Value

A string.

Specifications

See also