If you want to add a file to a text editor, Click the (Link) icon to proceed.
(1) Type the text, then drag the text to select it.
(2) Click the 'Link' icon.
(3) Click the [Browse Repositories] button on create link to locate and select the file under File Picker > Attachment.