Back to Devexpress

RichEditCommands.fileSave Property

aspnet-js-richeditcommands-8e8bf4cf.md

latest1.3 KB
Original Source

RichEditCommands.fileSave Property

Gets a command to save the document at its original location on the server.

Declaration

ts
get fileSave(): FileSaveCommand

Property Value

TypeDescription
FileSaveCommand

An object that provides methods that execute the command and check its state.

|

Remarks

Call the execute method to invoke the command. The method checks the command state (obtained via the getState method) to determine whether the action can be performed.

javascript
richEdit.commands.fileSave.execute();

If the document does not have a location on the server (the document is new) and the WorkDirectory property is defined, the command invokes the Save As dialog.

Refer to the following section for more information: Client Commands.

See Also

Save a Document

RichEditCommands Class

RichEditCommands Members