Should we get the possible list of modes from the editorView here, instead of hardcoding the 2 possibilities?  You do select the mode based on the editorView's setting.