Forum


Replies: 2   Views: 3362
Embedhtml: lists & <p> tags not rendering on templates?
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 admin  · 19-12-2016 - 07:33

Hello,

If you are using templates you need to use the replaceVariableByHtml method:

http://www.phpdocx.com/api-documentation/templates/replace-variable-html-Word-document

to replace placeholders. If you are already using this method, please check that the 'type' option of this method is set as block (block elements need block type replacement, not inline) and Tidy is enabled and running.

Also check that any other option or style is not overwiting the element styles (such as existing Word styles or the option strictWordStyles in HTML methods).

Regards.

Regards.