Implementation for the editor for data-state.