When using the Text Document API, how is it possible to make a text part inside a paragraph bold?
For example:
When this is a paragraph it’s great when only this text is bold.
I’m still trying to fully understand the data structure here. One option could be to separate the above in three paragraphs:
- When this is a paragraph it’s great when only
- this text
- is bold.
and set pararaph 2 to bold. And then insert the paragraphs into the document with isInline set to true:
oDocument.InsertContent([oParagraph1], true);
.
Here I’d have to insert them separately though, right? Since “Inline insert or not (works only for the last and the first element and only if it’s a paragraph).”
But I was wondering if there is a more straightforward way to style text inside a paragraph?
And just to understand, when I set a few words inside a paragraph to bold in the graphical editor, does this then result in separated inline paragraphs in the document’s internal data structure?