diff --git a/common/lib/capa/capa/templates/textbox.html b/common/lib/capa/capa/templates/textbox.html index 271d7795e0..91aa6d41c8 100644 --- a/common/lib/capa/capa/templates/textbox.html +++ b/common/lib/capa/capa/templates/textbox.html @@ -42,7 +42,12 @@ lineWrapping: true, indentUnit: "${tabsize}", tabSize: "${tabsize}", - indentWithTabs: true, + indentWithTabs: false, + extraKeys: { + "Tab": function(cm) { + cm.replaceSelection("${' '*tabsize}", "end"); + } + }, smartIndent: false }); });