Forum


Replies: 4   Views: 3983
Font size issue when using replacevariablebyhtml
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by nicks  · 22-09-2015 - 13:20

Hi Guys, I may well be having a brain block moment, though I can't seem to make the text in the replaced section a size 10 when using replaceVariableByHTML. Note I use block as the contents replacing the variable could tables and other formatting. Also I am using ckEditor as the WYSIWYG editor: $docx->replaceVariableByHTML(SECTION, "block","$VAR1") I am using p style="font-size:10px to format $VAR1, though can't paste in my exact code as it renders it on here. Am I missing something?