Luna,
1. You need to use script tag to let editor know it's a javascript code so that the above code will be protected by editor.
output = '<table border="1">"n';
output += '<thead><tr><td>Widget ID</td><td>Views</td></tr></thead>"n';
output += '<tbody>"n';
should be:
<script>
output = '<table border="1">"n';
output += '<thead><tr><td>Widget ID</td><td>Views</td></tr></thead>"n';
output += '<tbody>"n';
</script>
Demo:
asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
asp wysiwyg html editor: http://cutesoft.net/ASP
asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
Live Support: http://cutesoft.net/live-support/default.aspx