HTMLElement.contentEditable
Baseline Widely available *
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
* Some parts of this feature may have varying levels of support.
La propiedad contentEditable
de la interfaz HTMLElement
especifica si el elemento es editable o no. Este atributo puede tener los siguientes valores:
'true'
indica si el elemento escontenteditable
.'false'
indica que el elemento no puede ser editado.'inherit'
indica que el elemento hereda el estado editable del padre.
Se puede usar la propiedad HTMLElement.isContentEditable
para comprobar el valor Boolean
de esta propiedad.
Sintáxis
editable = element.contentEditable element.contentEditable = 'true'
Especificaciones
Specification |
---|
HTML # contenteditable |
Compatibilidad con navegadores
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
contentEditable | ||||||||||||
plaintext-only as a value |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- In development. Supported in a pre-release version.
- In development. Supported in a pre-release version.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
See also
- Making content editable
HTMLElement.isContentEditable
- The
contenteditable
global attribute.