HTMLElement.isContentEditable

The HTMLElement.isContentEditable read-only property returns a Boolean that is true if the contents of the element are editable; otherwise it returns false.

Syntax

JavaScript
editable = element.isContentEditable

Specifications

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 compatibility

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support (Yes) 4.0 (2) (Yes) (Yes) (Yes)
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support (Yes) 4.0 (2) (Yes) (Yes) (Yes) (Yes)

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/htmlelement/iscontenteditable

API Editing HTML DOM HTMLElement NeedsExample Property Read-only Reference Référence