The HTMLElement.isContentEditable
read-only property returns a Boolean
that is true
if the contents of the element are editable; otherwise it returns false
.
SyntaxEdit
editable = element.isContentEditable
SpecificationsEdit
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'HTMLElement.contenteditable' in that specification. |
Living Standard | No change from latest snapshot, HTML5.1 |
HTML5.1 The definition of 'HTMLElement.contenteditable' in that specification. |
Working Draft | Snapshot of WHATWG HTML Living Standard, no change from HTML5 |
HTML5 The definition of 'HTMLElement.contenteditable' in that specification. |
Recommendation | Snapshot of WHATWG HTML Living Standard, initial definition. |
Browser compatibilityEdit
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | 4.0 (2) | (Yes) | (Yes) | (Yes) |
See alsoEdit
element.contentEditable
- The contenteditable global attribute.