Is it possible to add customAttributes while adding content instead of using the customizeWordContent function after adding content?
Something like:
$docx->addText($text, ['customAttributes' => ['id' => 'myCustomId']]);
🏷️ Limited Offer: 25% OFF 🏷️
First 100 purchases only — Special discount!
Use this coupon on checkout: PHPDXPJ_D1SC1N5T
Get it now