You can place another file (for example, another text file, an image, a spreadsheet, or an application) or a folder within a TextEdit document. The embedded file or folder appears as an icon alongside the text in the document.
After you save the document, you can double-click the icon to open the file or folder, or drag the icon to the Finder to save it.
You can embed files and folders only in a rich text document. To change a plain text document to rich text, choose Format > Make Rich Text.
Choose File > Attach Files, browse for and select the file or folder, and then click Open.
Drag the file or folder from the Finder to the document window.
Embedding a file in your document increases the size of the document by the size of the file. For instance, if you embed a 700 MB application in a TextEdit document, the document size becomes 700 MB plus the original size of the TextEdit document.