JODF > Tutorial > Replace text with formatted text

The example shows you how to replace text with an AttributedText span, which carries its own style. The text before and after the replaced text stays in its original spans and keeps its formatting.

Need help? Ask our developers: