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

Update font and line spacing in Ace to match OL v1

James Allen 8 лет назад
Родитель
Сommit
7e250be66d
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      services/web/public/coffee/ide/editor/directives/aceEditor.coffee

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

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