Table of contents
- 1. Summary
- 2. Syntax
- 3. Notes
- 4. Browser compatibility
- 5. Specification
« Gecko DOM Reference
Summary
contentEditable is used to indicate whether or not the element is editable. This enumerated attribute can have the following values:
true,or the empty string, indicates that the element is editable.falseindicates that the element cannot be edited.inheritindicates that the element inherits its parent's editable status.
Syntax
editable = element.contentEditable element.contentEditable = "true"
Notes
You can use the element.isContentEditable
property to test the computed Boolean value of this property.
Browser compatibility
| Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
|---|---|---|---|---|---|
| Basic support | 11 | 3.0 (1.9) | 6 | 10.6 | 3.2 |
| Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
|---|---|---|---|---|---|
| Basic support | 3 | 1.0 (1.9) | 6 | -- | 5 |


Mozilla Developer Network