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