Try it
Insert an image from your computer
Place the input position in the document, choose a local PNG, JPEG, GIF, or BMP image, and insert it inline without a separate upload request.
The selected file stays in the browser. FileReader converts it to Base64 for the JavaScript API.
Ready to tryUse the controls above to interact with this demo.
What this demonstrates
Client-side image insertion
TX Text Control supports inline, fixed-position, and paragraph-anchored images. This sample uses inline insertion so the image behaves like a character and follows the surrounding text.
API used
TXTextControl.images.addInline
How it works
A browser FileReader reads the chosen image as a data URL. The script removes the data URL prefix and passes the Base64 payload to images.addInline. Its success and error callbacks update the global demo status.
Source files
See the implementation
The view, browser behavior, and controller are encapsulated in Demos/RichTextEditor/Editing/Images.