HTMLElement
요소의 contenteditable
속성은 요소의 편집 가능 여부를 나타냅니다. 열거형 속성으로, 다음 중 하나의 값을 가질 수 있습니다.
'true'
는 요소가contenteditable
임을 의미합니다.'false'
는 요소를 편집할 수 없음을 의미합니다.'inherit'
은 요소가 부모의 편집 가능 여부를 상속함을 의미합니다.
HTMLElement.isContentEditable
속성으로 이 속성의 Boolean
계산값을 얻을 수 있습니다.
명세
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of 'contenteditable' in that specification. |
Living Standard | Initial definition |
브라우저 호환성
BCD tables only load in the browser
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>
요소를 표의 각 칸에 배치할 수 있습니다.