Saves returns as CR+LF.
This command saves the document after converting all new lines into CR+LF (Windows). If the document is untitled, the Save As dialog box appears, which allows you to enter a file name to save the file as.
editor.ExecuteCommandByID(4105);
editor.ExecuteCommandByID 4105