There are several customizations that can be made to the 'cms_setup' function.
##id
Used to update an existing record.
##config
Overrides the collections configuration for only this editor.
In this example we are changing the visibility of the account field:
##data
Overrides the data for this object
##before_save
Function that is called before the object is saved to the api. It recieves a complete json copy of the object. Use this to make any modifications to the object before it is saved. If you return false, the save will be canceled, this is usefully for valdation errors.
##after_save
Function that is called after the object has been saved. It recieves a complete json copy of the object that was just saved to the database.
##bootstrap
Enable or disable the bootstrap css. Useful if bootstrap has already been loaded on the page.
##theme
Sets the theme. Availible themes: light or dark. The light theme is the default. Use false to disable the theme css.