Code to correctly insert a Table Row?

Hi,

The following code inserts a TR...but then if I start typing to add TD's,
all the TD's go in the same visual cell!

	TtaGiveFirstSelectedElement (m_Doc, &el, &firstchar, &lastchar);
	if (el != NULL)
	{
		elType = TtaGetElementType (el);

		if ( elType.ElTypeNum == HTML_EL_thead ||
			 elType.ElTypeNum == HTML_EL_tbody ||
			 elType.ElTypeNum == HTML_EL_tfoot )
		{
			// Can insert here
			elType.ElTypeNum = HTML_EL_Table_row;	
			row = TtaNewTree( m_Doc, elType, "" );
			
			TtaInsertFirstChild( &row, el, m_Doc );

		}
	}

Any ideas?!

Thanks,
An

Received on Friday, 25 June 1999 12:32:51 UTC