Home Forums DITA and XMetaL Discussion How to add table caption? Reply To: How to add table caption?

ghkrause

Reply to: How to add table caption?

I would build a loop and not use the insertElement method as it works with selection object only. Sorry, code is not testedn just as a hint …

if ( strElement == “table”)
{rng.InsertCALSTable(intRows,intCols,strElement,blnHeader);
//added new lines to insert para element in each cell
var entryList = rng.getElementsByTagName(“entry”);
For Each entryElem in entryList {
  pElem = ActiveDocument.createElement(“p”);
  entryElem.appendChild(pElem);
}
rng = null;
Dlg = null;
return;}

Reply

Products
Downloads
Support