Update font and line spacing in Ace to match OL v1

This commit is contained in:
James Allen 2018-05-03 17:04:49 +01:00
parent 40da785363
commit 7e250be66d

View file

@ -81,6 +81,9 @@ define [
editor = ace.edit(element.find(".ace-editor-body")[0]) editor = ace.edit(element.find(".ace-editor-body")[0])
editor.$blockScrolling = Infinity editor.$blockScrolling = Infinity
editor.container.style.lineHeight = 1.6
editor.setOption('fontFamily', '"Lucida Console", monospace')
# auto-insertion of braces, brackets, dollars # auto-insertion of braces, brackets, dollars
editor.setOption('behavioursEnabled', scope.autoPairDelimiters || false) editor.setOption('behavioursEnabled', scope.autoPairDelimiters || false)
editor.setOption('wrapBehavioursEnabled', false) editor.setOption('wrapBehavioursEnabled', false)