need to pass callback to editor for it to get called