Forum


Replies: 2   Views: 1174
Word character style with 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 s.montanarella  · 22-06-2021 - 15:08

Hi',

I'm trying to insert a word character inline style:
 

...
<td>
-
</td>
<td>
<p class="Etichettamenu">msg 2</p> <span>Text</span>
</td>
...
      "wordStyles": {
        ".h1": "Titolo1",
        ".h2": "Titolo2",
        ".h3": "Titolo3",
        ".h4": "Titolo4",
...
        ".Etichettamenu": "Etichettamenu",
      },

The template has defined the style "Etichetta menu" as a simple bold inline style.

When I open the docx the "Etichettamenu" style is not present, instead "Normal" is set.

I also try another version:

<b class="Etichettamenu">msg 2</b> <span>Testo non in grassetto</span>

Same results but obviously in bold and inline; better but it's not the expected results.

Thanks!
Federico