Skip to content

DevExpress-Examples/blazor-dxrichedit-export-to-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blazor Rich Text Editor - How to export a document to a file (HTML format)

This example adds a custom button to the Download menu on the File tab. Click this button to export an open document to a file (HTML format) and save it in the project folder.

Blazor DxRichEdit export a document to the HTML

At present, our Blazor Rich Text Editor does not support the HTML format. You can use the RichEditDocumentServer component to import and export documents in HTML format. To add this component to your application, install the DevExpress.RichEdit.Core package.

The CustomizeRibbon event allows you to access and customize the Rich Text Editor's built-in ribbon UI. Call the AddCustomButton in the event handler to add a custom button to the ribbon. Execute the following actions in response to the click event to export the open document to a file (HTML format):

  1. Save the open document's content.
  2. Initialize a new instance of the RichEditDocumentServer class.
  3. Load document content to the document server.
  4. (Optional) Customize the document server's export options.
  5. Save the document to a file (HTML format).

Files to Look At

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)