Forum


Replies: 1   Views: 1758
Placeholders with html - need to keep basic word styling.
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 katethomas  · 11-02-2020 - 02:16

When using placeholders such as $NOTES$ we can insert text into a user created Template without issue.  The docx created will use the styling applied to $NOTES$ from within the template using: replaceVariableByText

If $NOTE$ is stored as html, then we can recreate the styling in the created docx using: replaceVariableByHTML

What we can not seem to do, it to create a docx using html, but also keep the styling that the customer has applied for $NOTES$ on their template - it always reverts back to default font and size when using replaceVariableByHTML - Is it possible to do ?