Update API to save cyto code mirror sketch