Validating a richtext field whether it is having an attachment or not.
Create a hidden, computed field and give @attachments as the default value. Check that the value of the field is greater than one while saving. If it is not, pop up a message.
Note: @attachments will give the number of attachments in a document.