I want insert in my word bookmark rich text HTML. For that I use your tuto : Replace-the-Content-of-Word-Bookmark-with-HTML-Code. But if my Rich Text contain a html table it's not working : appendHTML doesn't like when there is style on tag <td> and when there is none there is a problem with TextBodySelection since the two arguments are null. So is it possible to insert in word bookmark a section and is there a solution where there is style in the tag <td> ?
Here is the HTML for my table :
- Code: Select all
"<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n
<tbody>\n
<tr>\n
<td style=\"width: 30.8543%;\">un</td>\n
<td style=\"width: 30.8543%;\">joli</td>\n
<td style=\"width: 30.8543%;\">tableau</td>\n
</tr>\n
<tr>\n<td style=\"width: 30.8543%;\">pour</td>\n
<td style=\"width: 30.8543%;\">le</td>\n
<td style=\"width: 30.8543%;\">contexte</td>\n
</tr>\n
</tbody>\n
</table>"
Thanks
Julien