I have a contentEditable div, inside this div I have a table.
Sample HTML:
<div id="divId" contenteditable="true">
<table>
<tbody>
<tr>
<td><br></td>
<td>@param<br></td>
</tr>
<tr>
<td><br></td>
<td><br></td>
</tr>
</tbody>
</table>
</div>
I want to insert an input element over caret position (selected cell in the table) - for example where @param is.
I used the $("#divId").append but that only insert the input in the end of the div and not where I need it.
Any help will be appreciated.