-
Notifications
You must be signed in to change notification settings - Fork 8k
/
index.md
28 lines (17 loc) · 1.22 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
title: contenteditable
slug: Web/HTML/Global_attributes/contenteditable
---
> **Nota:** {{HTMLSidebar("Global_attributes")}}
El [atributo global](/es/docs/Web/HTML/Atributos_Globales) **contenteditable** es un atributo enumerado que indica si el elemento debe de ser editable por el usuario. Si es así, el explorador modifica su widget para permitir la edición. El atributo debe de tener alguno de los siguientes valores:
- `true` o una cadena vacia, que indica que el elemento debe de ser editable.
- `false`, que indica que el elemento no debe ser editable.
Si este atributo no se establece, el valor por defecto es _heredado_ de su elemento padre.
Este es un atributo enumerado y no uno _booleano_. Esto significa que el uso explícito de uno de los valores `true`, `false` o la cadena vacía es obligatorio y que un código como `<label contenteditable>Example Label</label>` no esta permitido. El uso correcto es `<label contenteditable="true">Example Label</label>`.
## Especificaciones
{{Specifications}}
## Compatibilidad con navegadores
{{Compat}}
## Ver también
- [atributos globales](/es/docs/Web/HTML/Atributos_Globales)
- {{domxref("HTMLElement.contentEditable")}} and {{domxref("HTMLElement.isContentEditable")}}