Interactive editor
Explore Stylesheet Formatting
Apply reusable paragraph and character styles that remain compatible with Word documents.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Stylesheet Formatting
Apply reusable paragraph and character styles that remain compatible with Word documents.
API used
TXTextControl.selection.setFormattingStyle
How it works
The document contains named styles. The selected style name is passed to Selection.setFormattingStyle, allowing the document’s existing style definitions and inheritance rules to control the final appearance.
Source files
See the implementation
The view, browser behavior, and controller are encapsulated in Demos/RichTextEditor/Editing/Styles.