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.
A propriedade HTMLElement.contentEditable
é usada para indicar se o elemento é editável ou não. Esse atributo enumerado pode ter os seguintes valores:
"true"
Indica que o elemento é editável;"false"
Indica que o elemento não pode ser editável;"inherit"
Indica que o elemento herda o status editável de seu pai.
Você pode usar a propriedade HTMLElement.isContentEditable
para testar o valor calculado Boolean
desta propriedade.
Sintaxe
editable = element.contentEditable element.contentEditable= "true"
Especificações
Specification |
---|
HTML # contenteditable |
Compatibilidade com 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.