Home › Forums › DITA and XMetaL Discussion › How to add table caption? › Reply To: How to add table caption?
Reply to: How to add table caption?
May 7, 2009 at 5:33 pmThis is a very interesting and helpful topic. Thanks!
I'm trying to do something similar with XMEE 5.1 w/ DITA
In my case, i want each cell in a normal table to include a
tag when the table is inserted. I've been able to get a
tag in the first cell using a modification of the js code provided by Derek Read. But i have not been able to make it apply to all cells in the table. My code is below:
[code]if ( strElement == “table”) {
rng.InsertCALSTable(intRows,intCols,strElement,blnHeader);
//added two new lines to insert para element in each cell
rng.MoveToElement(“TableEntry”,false);
rng.InsertElement(“p”);
rng.Select();
rng = null;
Dlg=null; return;
}[/code]
Any suggestions how/if this can work?