added tab-as-spaces replacement for the codemirror textarea