ASPxClientCommandConsts.PASTEFROMWORD_COMMAND Property

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



Property Value

Type Description

Value: "pastefromword"


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);

This command is available only in the Design View.

See Also