For HTML tables and tags to work I think you need the HTML header (<head>) and body(<body>) element and also html(<html>) element in which the contents should be wrapped.
The best open source editor nowadays developers using is FCKEditor. Try it out, it is very nice.
http://sourceforge.net/projects/fckeditor/[
^]
Hope this will help!</html></body></head>