mozilla
Your Search Results

    HTMLElement.contentEditable

    The HTMLElement.contentEditable property 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 contenteditable.
    • false indicates that the element cannot be edited.
    • inherit indicates that the element inherits its parent's editable status.

    You can use the HTMLElement.isContentEditable property to test the computed Boolean value of this property.

    Syntax

    editable = element.contentEditable
    element.contentEditable = "true"
    

    Specifications

    Specification Status Comment
    WHATWG HTML Living Standard
    The definition of 'contenteditable' in that specification.
    Living Standard  

    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 Not supported 5

    Bugs

    See also

    Document Tags and Contributors

    Last updated by: Nostradamed1503,
    Hide Sidebar