This sample demonstrates the events that trigger on every action of the rich text editor. The event details are showcased in the event trace panel.
The rich text editor component is WYSIWYG ("what you see is what you get") editor that provides the best user experience to create and update the content. Users can format their content using standard toolbar commands.
Provides <IFRAME> and <DIV> modes
Capable of handling markdown editing.
Contains a modular library to load the necessary functionality on demand.
Provides a fully customizable toolbar.
Provides HTML view to edit the source directly for developers.
Supports third-party library integration.
Allows preview of modified content before saving it.
Handles images, hyperlinks, video, hyperlinks, uploads, etc.
Contains undo/redo manager.
Creates bulleted and numbered lists.
The rich text editor triggers the events based on its actions. The events can be used as an extension point to perform custom operations. change - Triggers when the editor gets blurred and changes are made to the content. focus - Triggers when the editor is in focus. blur - Triggers when focused out of the editor. actionBegin - Triggers before the execution of command. actionComplete - Triggers after the execution of command. created - Triggers when the component is created. destroyed – Triggers when the component is destroyed. Injecting Module The above features built as modules have to be included in your application. For example, to use image and link, inject the specific module using RichTextEditor.Inject (Toolbar, Link, Image, HtmlEditor).