Forum


Replies: 4   Views: 2329
"domdocument::loadxml() expects parameter 1 to be string, object given" in embedhtml
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  · 06-06-2020 - 09:47

Hello,

UPDATE: phpdocx 10 added support to apply custom list styles with ol and ul tags.

Please follow the following steps:

1. Edit CreateDocx.php (Classes/Phpdocx/Create folder in the namespaces package).

2. embedHTML method.

3. Replace the following line:

if (isset($value['attributes'])) {

by:

if (isset($value['attributes']) && $newNumberingDOM) {

That allows adding customListStyles with ol tags.

Regards.