Skip to main content

ASPxClientCommandConsts.PASTEFROMWORD_COMMAND Property

Identifies a command that pastes a specified content taking into account that it was copied from Word.

Declaration

static PASTEFROMWORD_COMMAND: string

Property Value

Type Description
string

Value: “pastefromword”

Remarks

The PASTEFROMWORD_COMMAND property can be used in the following ways.

  • In the ASPxClientHtmlEditor.CommandExecuted event — to determine the action performed by an end-user. If the ASPxClientHtmlEditorCommandEventArgs.commandName event parameter returns the PASTEFROMWORD_COMMAND property value, this means that an end-user has clicked the OK button within the Paste from Word dialog.
  • In the ASPxClientHtmlEditor.ExecuteCommand method — to execute the command manually.

    In this case, the method requires an additional parameter, which is an html object with the html property containing the html content to be pasted.

    //pastes the 'some content' to the current cursor position taking into account that it was copied from Word
    var param = { html: 'some content' };
    htmlEditor.ExecuteCommand(ASPxClientCommandConsts.PASTEFROMWORD_COMMAND, param);
    

Note

This command is available only in the Design View.

See Also