Hello,
Although we have replied to your email, we post the same information:
- Paragraphs are used to add contents. Block placeholders must be added in their own paragraphs to use cloneBlock. Your script is adding a single paragraph with soft line breaks.
- Set block as type replacement when using replaceVariableByHTML. An inline replacement removes all block contents before adding them. On https://www.phpdocx.com/documentation/practical/wordfragments-and-wordml you can read more information about inline and block type replacements:
Regards.