Interactive controls
Selection formatting
Select text in the document, then apply several character properties at once.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Format live document content
TX Text Control exposes document editing features through a browser-friendly JavaScript API. Select text in the editor and apply formatting with one clear action.
API used
TXTextControl.selection
How it works
The demo selects the first word when the editor loads. The button then changes its size, font, colors and character styles through the selection object.
Source files
See the implementation
Open a file to inspect the live source behind this demo.