Pass the current resource to Redactor

This is necessary for dealing with placeholders in image/file browse paths, such as [[+context_key]].