mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Match auto complete font size to editor font size
This commit is contained in:
@@ -31,9 +31,7 @@ define [
|
||||
enableBasicAutocompletion: true,
|
||||
enableSnippets: true
|
||||
})
|
||||
snippetManager = @aceEditor.completers[0]
|
||||
console.log snippetManager
|
||||
@aceEditor.completers = [snippetManager, @suggestionManager]
|
||||
@aceEditor.completers = [@suggestionManager]
|
||||
|
||||
@bindToEditorEvents()
|
||||
|
||||
@@ -55,4 +53,7 @@ define [
|
||||
if commandFragment?
|
||||
setTimeout () =>
|
||||
@aceEditor.execCommand("startAutocomplete")
|
||||
$(@aceEditor.completer.popup.container)
|
||||
.find(".ace_content")
|
||||
.css("font-size": window.userSettings.fontSize + "px")
|
||||
, 0
|
||||
|
||||
@@ -88,7 +88,6 @@ define [
|
||||
completions.push {
|
||||
caption: caption
|
||||
snippet: snippet
|
||||
meta: "snippet"
|
||||
}
|
||||
|
||||
callback null, completions
|
||||
|
||||
Reference in New Issue
Block a user