Refactoring Fixes Dijit Editor