Can someone help me style table cells that have contentEditable set to "true"? I've tried various CSS selectors like td[contenteditable]
, td[contenteditable=true]
, and td[contenteditable="true"]
, but none seem to work. Is there a specific selector for this, or do I need to resort to using JavaScript?
Below is the HTML code:
<table class="table table-bordered">
<thead>
<th>content</th>
<th>editable content</th>
<th>content</th>
</thead>
<tr>
<td>Lorem ipsum</td>
<td contenteditable="true">I'm editable!</td>
<td>Lorem ipsum</td>
</tr>
<tr>
<td>Lorem ipsum</td>
<td contenteditable="true">I'm editable!</td>
<td>Lorem ipsum</td>
</tr>
<tr>
<td>Lorem ipsum</td>
<td contenteditable="true">I'm editable!</td>
<td>Lorem ipsum</td>
</tr>
</table>