If there is a particular type of content which will always (or usually) have a file or an image attached to it, a content type with an image field should be created. This will create an image or file upload button outside the WYSIWYG, and will store a record of the uploaded image or file so that all images or files of that type can be automatically indexed.