Back to Devexpress

Flash Dialogs

aspnet-17757-components-html-editor-concepts-dialogs-flash-dialogs.md

latest6.4 KB
Original Source

Flash Dialogs

  • Jun 16, 2022
  • 2 minutes to read

Flash dialogs include the Insert Flash and Change Flash dialogs that allow users to insert Flash content into the editor and change it, respectively.

In the Design View, use the techniques below to invoke a dialog:

Dialog Structure

A flash dialog contains the three tabs listed below.

Tab captionTab visibilityDescription
From your computerHtmlEditorInsertMediaDialogSettings.ShowFileUploadSectionAllows users to upload their local files.
From the galleryHtmlEditorFileManagerSettingsBase.EnabledAllows users to add flash files from a predefined gallery to editor content. To customize the gallery settings, use the HtmlEditorInsertFlashDialogSettings.SettingsFlashSelector and HtmlEditorInsertFlashDialogSettings.SettingsFlashUpload properties.
From the web (URL)HtmlEditorInsertMediaDialogSettings.ShowInsertFromWebSectionAllows users to upload files from the web.

When the More options check box is selected, the dialog displays the settings section, which allows users to customize Flash element settings (size, position, description, and style settings such as margins, border, and CSS class). To hide the check box, set the HtmlEditorInsertMediaDialogSettingsBase.ShowMoreOptionsButton property to false.

Dialog Customization

At design time, you can use the ASPxHtmlEditor Designer to customize dialog settings. Programmatically, you can specify the HtmlEditorDefaultDialogSettings.InsertFlashDialog property for this purpose.

Online Demo

Insert Media Content

On the client side, the ASPxHtmlEditor API allows you to manage the opened dialog programmatically.

|

Dialog UI elements

|

Client method

| | --- | --- | |

Common Dialog UI elements

|

ASPxClientHtmlEditorMediaDialogBase.GetMoreOptionsCheckBox

ASPxClientHtmlEditorDialogBase.GetOkButton

ASPxClientHtmlEditorDialogBase.GetCancelButton

| |

“From the web (URL)” Tab UI elements

|

ASPxClientHtmlEditorLinkDialog.GetUrlTextBox

| |

“Common Settings” Tab UI elements

|

ASPxClientHtmlEditorMediaDialogBase.GetWidthSpinEdit

ASPxClientHtmlEditorMediaDialogBase.GetHeightSpinEdit

ASPxClientHtmlEditorMediaDialogBase.GetPositionComboBox

ASPxClientHtmlEditorFlashDialog.GetQualityComboBox

ASPxClientHtmlEditorFlashDialog.GetAutoPlayCheckBox

ASPxClientHtmlEditorFlashDialog.GetEnableFlashMenuCheckBox

ASPxClientHtmlEditorFlashDialog.GetLoopCheckBox

ASPxClientHtmlEditorFlashDialog.GetAllowFullscreenCheckBox

| |

“Style Settings” Tab UI elements

|

ASPxClientHtmlEditorEditElementDialog.GetTopMarginTextBox

ASPxClientHtmlEditorEditElementDialog.GetRightMarginTextBox

ASPxClientHtmlEditorEditElementDialog.GetBottomMarginTextBox

ASPxClientHtmlEditorEditElementDialog.GetLeftMarginTextBox

ASPxClientHtmlEditorEditElementDialog.GetBorderWidthSpinEdit

ASPxClientHtmlEditorEditElementDialog.GetBorderColorColorEdit

ASPxClientHtmlEditorEditElementDialog.GetBorderStyleComboBox

|