The DevExpress ASP.NET MVC HtmlEditor extension allows your end-users to insert media content using the built-in toolbar buttons, dialogs, and media file selectors. This demo shows how easily media files can be inserted into the content of the editor.
The HtmlEditor's toolbar provides the following default buttons:
- Insert Flash button
- Insert Video button
- Insert Audio button
- Insert YouTube Video button
Use these buttons to invoke the Insert Media dialog. Once activated, the Insert Media dialog allows end-users to manage content media via a point-and-click UI. To enable these features, activate the corresponding Enabled options via the editor's SettingsFlashSelector, SettingsVideoSelector, and SettingsAudioSelector option sets.
To prohibit the usage of media elements in the editor content use the following properties, available by the SettingsHtmlEditing property.
- AllowHTML5MediaElements specifies whether the editor's HTML markup can contain HTML5 media elements, i.e. audio and video elements.
- AllowObjectAndEmbedElements specifies whether the editor's HTML markup can contain object and embed elements.
- AllowYouTubeVideoIFrames specifies whether the editor's HTML markup can contain iframe element containing link to YouTube.
Local Copy of this Demo To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer. |
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxHTMLEditorDemos |