Hello,
You need to use an array to add all elements as inline contents. Please check the following documentation pages to understand both approaches (inline and block contents):
- Adding more than one content into a single WordFragment as inline elements
- Adding more than one content into a single WordFragment as block elements
You need to use the first approach.
Regards.