Hi @ all!
First of all I'd like to say that PHPDOCX is a great piece of software. But I also have got some trouble with the mapping of HTML elements to Word Styles.
I use something like this
[code]
$oPHPDocX->replaceTemplateVariableByHTML(
$sPlaceholder,
'block',
$sContent,
array(
'isFile' => false,
'parseDivsAsPs' => true,
'downloadImages' => true,
'wordStyles' => array(
'<p>' => 'Standard',
'<h1>' => 'Titel',
'<h2>' => 'Überschrift 1',
'<li>' => 'Listeneintrag 1'
)
)
);
[/code]
But in the resulting DOCX the headings [b]<h1>[/b] and [b]<h2>[/b] as well as list items [b]<li>[/b] have the style [b]Standard[/b].
I've already updated to v3.2.