added table and preview functionality to wysiwyg closes #162