HTML DOM Element isContentEditable

Example

Is "myP" element editable:

let answer = document.getElementById("myP").isContentEditable;
Try it Yourself »

Description

The isContentEditable property returns true if the content of an element is editable.

The isContentEditable property is read-only.

Note

You can use the contentEditable property to change the editable state of an element.

See Also:

The contentEditable Property

HTML contenteditable Attribute


Syntax

element.isContentEditable

Return Value

Type Description
Booleantrue if the content of an element is editable, otherwise false.

Browser Support

element.isContentEditable() is supported in all browsers:

Chrome Edge Firefox Safari Opera IE
Yes Yes Yes Yes Yes Yes

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.