Просмотр исходного кода

disable auto insert of brackets and quotes in ace

Brian Gough 10 лет назад
Родитель
Сommit
3a07b785db
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      services/web/public/coffee/ide/editor/directives/aceEditor.coffee

+ 5 - 0
services/web/public/coffee/ide/editor/directives/aceEditor.coffee

@@ -58,6 +58,11 @@ define [
 
 				editor = ace.edit(element.find(".ace-editor-body")[0])
 				editor.$blockScrolling = Infinity
+
+				# disable auto insertion of brackets and quotes
+				editor.setOption('behavioursEnabled', false)
+				editor.setOption('wrapBehavioursEnabled', false)
+
 				window.editors ||= []
 				window.editors.push editor