refactor redactor plugin;