- From: <Irene.Vatton@inrialpes.fr>
- Date: Tue, 29 Jun 1999 11:10:09 +0200
- To: "Ly, An" <An.Ly@CAI.COM>
- cc: www-amaya@w3.org
Hi, Could you explain more? Where did you add the following code? Is it called by the command CreateDataCell? I note in the piece of code that you insert a new row, but you don't move the current selection. In-reply-to: Your message of Fri, 25 Jun 1999 12:32:28 -0400." <F516E350BFC4D1118F7B00805FC14BC3023E4265@usilmse2.cai.com> > 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 > Irene.
Received on Tuesday, 29 June 1999 05:10:15 UTC