paste command is not pasting the required html where the cursor position is.
for our testing we have following html -
<table border="0" width="496"><tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr></table>
we are trying to paste using the code below -
var text = "<input id="first_name" value="[FirstName]" type="input" name="first_name" />"
ExecCommand("PasteHTML", false, text);
but the above code works fine, when we have the following html -
<table border="0" width="496"><tr>
<td></td>
<td></td>
<td></td>
<td></td>
</tr></table>
the difference you can see is of the spaces.