First save the file as a .pdf or .doc or .xls according to the appropriate file type on your local computer.
Attach the file in the email by clicking on the plus icon with the 3 dots on the formatting bar. Then click the Upload File (paper) icon. Drag and drop the file or click in the box to select it from the file location on your local computer.
Make sure to save your changes!