Skip to main content

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

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

ASPxHtmlEditor-ClientApi-PasteFromWord

Example

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