Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Expand]ASP.NET WebForms Controls
 [Collapse]ASP.NET MVC Extensions
  [Expand]Product Information
  [Expand]Getting Started
  [Expand]Common Concepts
  [Expand]Grid View
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Collapse]HTML Editor
    Overview - HtmlEditor
    Main Features - HtmlEditor
   [Expand]Visual Elements
   [Expand]Animated Images
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Navigation and Layout Extensions
  [Expand]File Management
  [Expand]Multi-Use Site Extensions
  [Expand]Charts
  [Expand]Pivot Grid
  [Expand]Scheduler
  [Expand]Tree List
  [Expand]Data Editor Extensions
  [Expand]Report Extensions
  [Expand]SpellChecker
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Overview - HtmlEditor

The DevExpress HtmlEditor is a rich-text WYSIWYG HTML editor extension for ASP.NET MVC. Its intuitive user interface enables even inexperienced users to edit HTML page content with ease.

To learn more about HtmlEditor and see it in action, refer to its online demos.

Expanded Implementation Details

HtmlEditor is realized by the HtmlEditorExtension class. Its instance can be accessed via the ExtensionsFactory.HtmlEditor helper method, which is used to add a HtmlEditor extension to a view. This method's parameter provides access to the HtmlEditor's settings implemented by the HtmlEditorSettings class, allowing you to fully customize the extension.

HtmlEditor's client counterpart is represented by the MVCxClientHtmlEditor object.

Expanded Declaration

HtmlEditor can be added to a view in the following manner.

View code - "Index" (Razor):

Note

To enable the file downloading and uploading functionality, the Partial View with the extension must be wrapped with the HTML form. Since this functionality is implemented through the UploadControl extension, it's also necessary to fulfill all the recommendations from the corresponding KB article.

Partial View code - "HtmlEditorPartial" (Razor):

Controller ("Home"):

The code result is demonstrated in the image below.

Expanded See Also

How would you rate this topic?​​​​​​​