Blazor Rich Text Editor Example - Events

Rich Text Editor / Miscellaneous / Events

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.

Loading Syncfusion Blazor Server Demos…

Event Trace

The Rich Text Editor triggers the events based on its actions. The events can be used as an extension point to perform custom operations.

  • ValueChange - 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.
  • OnActionBegin - Triggers before the execution of command.
  • OnActionComplete - Triggers after the execution of command.
  • Created - Triggers when the component is created.
  • OnDialogOpen – Event triggers when the dialog is being opened.
  • DialogOpened – Event triggers when a dialog is opened.
  • OnDialogClose – Event triggers when the dialog is being closed.
  • DialogClosed – Event triggers after the dialog has been closed.
  • OnQuickToolbarOpen – Event triggers when the quick toolbar is being opened.
  • QuickToolbarOpened – Event triggers when a quick toolbar is opened.
  • QuickToolbarClosed – Event triggers after the quick toolbar has been closed.
  • OnImageSelected – Event triggers when the image is selected or dragged into the insert image dialog.
  • BeforeUploadImage – Triggers when the selected image begins to upload to the server.
  • ImageUploadChange – Triggers when the image is successfully uploaded and the value changed in the Rich Text Editor uploader.
  • OnImageUploadSuccess – Event triggers when the image is successfully uploaded to the server side.
  • OnImageUploadFailed – Event triggers when there is an error in the image upload.
  • OnImageRemoving – Event triggers when the selected image is cleared from the insert image dialog.
  • ImageDelete – Triggers when the selected image is cleared from the Rich Text Editor content.
  • Destroyed – Triggers when the component is destroyed.
  • OnResizeStart –Triggers only when you start resizing the image.
  • OnResizeStop – Triggers only when you stop resizing the image.
  • OnToolbarClick – Triggers when the Rich Text Editor toolbar items are clicked.
  • SelectionChanged – Triggers only when the selection within the editor is modified.
Transform your Blazor web apps today with Syncfusion® Blazor components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE