Load the editor with the correct mode.