This is provided completely by elm_code so can be reused in other editors. For now this is just text/newline insertion... Still have to add undo for deletion and selection