Skip to main content
A newer version of this page is available. .

Paste from Word Dialog

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

ASPxHtmlEditor_PasteFromWordDialog

Concept

Paste Formatting

The table below provides the APIs that allow you to manage the dialog on the client.

Dialog UI elements

Client method

Common Dialog UI elements

ASPxClientHtmlEditorPasteFromWordDialog.GetRemoveFontFamilyCheckBox

ASPxClientHtmlEditorDialogBase.GetOkButton

ASPxClientHtmlEditorDialogBase.GetCancelButton

ASPxHtmlEditor-ClientApi-PasteFromWord

Example

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