Hi there,
Our templates are user-generated, so contain many different styles. I understand that when using
$docx->replaceVariableByText('FULL_DESCRIPTION', 'My description');
that the original text properties are honoured - so it will retain bold, the font, etc. That's perfect.
However, when replacing with HTML or a WordFragment, this isn't the case and obviously these are more complicated.
I wondered if it was possible to get the text properties from a variable that's about to be replaced - something like using $docx->getDocxPathQueryInfo so that I could search for a variable like $FULL_DESCRIPTION$ and then be able to get its size, font, bold, etc properties so that I can reapply them myself to my HTML or to the WordFragment I'm creating?