HTMLElement.contentEditable

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

* Some parts of this feature may have varying levels of support.

HTMLElement 요소의 contenteditable 속성은 요소의 편집 가능 여부를 나타냅니다. 열거형 속성으로, 다음 중 하나의 값을 가질 수 있습니다.

  • 'true'는 요소가 contenteditable임을 의미합니다.
  • 'false'는 요소를 편집할 수 없음을 의미합니다.
  • 'inherit'은 요소가 부모의 편집 가능 여부를 상속함을 의미합니다.

HTMLElement.isContentEditable 속성으로 이 속성의 Boolean 계산값을 얻을 수 있습니다.

명세

Specification
HTML
# contenteditable

브라우저 호환성

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
contentEditable
plaintext-only as a value

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
In development. Supported in a pre-release version.
In development. Supported in a pre-release version.

Internet Explorer에서 contenteditable<table>, <col>, <colgroup>, <tbody>, <td>, <tfoot>, <th>, <thead>, <tr> 요소에 바로 적용할 수 없습니다. 대신 편집 가능한 <span> 또는 <div> 요소를 표의 각 칸에 배치할 수 있습니다.

같이 보기