Got the editor mostly working