updated for redactor 10