Add some boilerplate to handle basic functions for the editor