disable auto insert of brackets and quotes in ace

This commit is contained in:
Brian Gough 2016-10-20 11:33:12 +01:00
parent 193766b437
commit 3a07b785db

View file

@ -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