mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 10:32:19 -05:00
Set autocomplete menu to editor font size
This commit is contained in:
parent
a7cab5bf4f
commit
e102e65325
1 changed files with 3 additions and 2 deletions
|
@ -86,16 +86,17 @@ define [
|
||||||
|
|
||||||
Autocomplete::_insertMatch.call this, data
|
Autocomplete::_insertMatch.call this, data
|
||||||
|
|
||||||
# Overwrite this to set autoInsert = false
|
# Overwrite this to set autoInsert = false and set font size
|
||||||
Autocomplete.startCommand = {
|
Autocomplete.startCommand = {
|
||||||
name: "startAutocomplete",
|
name: "startAutocomplete",
|
||||||
exec: (editor) ->
|
exec: (editor) =>
|
||||||
if (!editor.completer)
|
if (!editor.completer)
|
||||||
editor.completer = new Autocomplete()
|
editor.completer = new Autocomplete()
|
||||||
editor.completer.autoInsert = false
|
editor.completer.autoInsert = false
|
||||||
editor.completer.autoSelect = true
|
editor.completer.autoSelect = true
|
||||||
editor.completer.showPopup(editor)
|
editor.completer.showPopup(editor)
|
||||||
editor.completer.cancelContextMenu()
|
editor.completer.cancelContextMenu()
|
||||||
|
$(editor.completer.popup.container).css({'font-size': @$scope.fontSize + 'px'})
|
||||||
bindKey: "Ctrl-Space|Ctrl-Shift-Space|Alt-Space"
|
bindKey: "Ctrl-Space|Ctrl-Shift-Space|Alt-Space"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue