From 3a07b785dbbe0fec5cb71b2a99670d123bfff3f0 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Thu, 20 Oct 2016 11:33:12 +0100 Subject: [PATCH] disable auto insert of brackets and quotes in ace --- .../web/public/coffee/ide/editor/directives/aceEditor.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor.coffee index 2dc9440ffa..fbd335087d 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee +++ b/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