mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 05:41:33 +02:00
Set autocomplete menu to editor font size
This commit is contained in:
+3
-2
@@ -86,16 +86,17 @@ define [
|
||||
|
||||
Autocomplete::_insertMatch.call this, data
|
||||
|
||||
# Overwrite this to set autoInsert = false
|
||||
# Overwrite this to set autoInsert = false and set font size
|
||||
Autocomplete.startCommand = {
|
||||
name: "startAutocomplete",
|
||||
exec: (editor) ->
|
||||
exec: (editor) =>
|
||||
if (!editor.completer)
|
||||
editor.completer = new Autocomplete()
|
||||
editor.completer.autoInsert = false
|
||||
editor.completer.autoSelect = true
|
||||
editor.completer.showPopup(editor)
|
||||
editor.completer.cancelContextMenu()
|
||||
$(editor.completer.popup.container).css({'font-size': @$scope.fontSize + 'px'})
|
||||
bindKey: "Ctrl-Space|Ctrl-Shift-Space|Alt-Space"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user