HTMLElement.contentEditable

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

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

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

명세

Specification
HTML Standard
# contenteditable

브라우저 호환성

BCD tables only load in the browser

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

같이 보기