Hello.
I may have found a small issue ith the removeWordContent.
My need is to remove a table row base on some condition, so as a trial I did this code :
$referenceNode = array(
'type' => 'table-row',
'contains' => 'Bravo',
);
$docx->removeWordContent($referenceNode);
The goal is to remove table row if one of the cell contains Bravo. In my test file I have three rows with Alpha, Bravo and Charlie.
The issue is that it does not work, I can delete the complete table with the type set to table but the type table-row does not remove anythin.
I have found a workaround using the customQuery with this code
$referenceNode = array(
'customQuery' => '//w:tbl/w:tr[contains(.,"Bravo")]',
);
$docx->removeWordContent($referenceNode);
But it seems to me that the first code should be working as well.