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 GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
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.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Internet Explorer에서 contenteditable
은 <table>
, <col>
, <colgroup>
, <tbody>
, <td>
, <tfoot>
, <th>
, <thead>
, <tr>
요소에 바로 적용할 수 없습니다. 대신 편집 가능한 <span>
또는 <div>
요소를 표의 각 칸에 배치할 수 있습니다.