Back to Devexpress

Paste from Word Dialog

aspnet-8302-components-html-editor-concepts-dialogs-paste-from-word-dialog.md

latest1.3 KB
Original Source

Paste from Word Dialog

  • Jan 15, 2022

The Paste from Word dialog allows users to paste text from a Word document with its original formatting and font settings.

Concept

Paste Formatting

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

|

Dialog UI elements

|

Client method

| | --- | --- | |

Common Dialog UI elements

|

ASPxClientHtmlEditorPasteFromWordDialog.GetRemoveFontFamilyCheckBox

ASPxClientHtmlEditorDialogBase.GetOkButton

ASPxClientHtmlEditorDialogBase.GetCancelButton

|

Example

js
function onDialogInitialized(s, e) {
    if (e.dialogName === ASPxClientCommandConsts.PASTEFROMWORDDIALOG_COMMAND)
        e.dialog.GetRemoveFontFamilyCheckBox().SetValue(true);            
}