Joomla's default editor is TinyMCE which is a great and lightweight online editor for most purposes.
However it has a huge drawback for me: It does not include a file manager. There is no easy way to attach a file the editor. You have to use other tools, eg ftp, or Joomla's media manager.
After some searching around, and trying some solutions I found the best way to do this.