Nabend!
Soweit mir bekannt ist lässt sich dein Problem nur mit einem Art WYSIWYG-Editor lösen. Lösungsansatz ist, dass du in einem Ifram operierst, dessen DesignMode auf On ist, somit kannst in in dem Frame arbeiten.
Hier der Code:
<html>
<head>
<script type="text/javascript">
function Init(){
iView.document.designMode = 'On';
iView.document.write('<table border=1><tr><td>Zelle 1</td><td>Zelle 2</td></tr><tr><td>Zelle 3</td><td>Zelle 4</td></tr></table>');
}
</script>
</head><body onload="Init();">
<iframe id="iView" style="width: 400px; height:400px"></iframe>
</body>
</html>
Den Designmode kann man per Klick auf einen Button dann auf On/off setzten....
Hoffe das hilft dir weiter
Thomas Will