Fix plugin functionality for redactor version 10.