mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 11:01:29 +00:00
use flag on aceEditor to enable autocomplete features
This commit is contained in:
parent
f7ad4a4786
commit
c7dbd21cd1
2 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@ div.full-size(
|
|||
keybindings="settings.mode",
|
||||
font-size="settings.fontSize",
|
||||
auto-complete="settings.autoComplete",
|
||||
enable-auto-complete-features="true",
|
||||
spell-check="!anonymous",
|
||||
spell-check-language="project.spellCheckLanguage",
|
||||
highlights="onlineUserCursorHighlights[editor.open_doc_id]"
|
||||
|
|
|
@ -92,7 +92,7 @@ define [
|
|||
highlightsManager = new HighlightsManager(scope, editor, element)
|
||||
cursorPositionManager = new CursorPositionManager(scope, editor, element, localStorage)
|
||||
trackChangesManager = new TrackChangesManager(scope, editor, element)
|
||||
if scope.name == 'editor'
|
||||
if attrs.enableAutoCompleteFeatures
|
||||
labelsManager = new LabelsManager(scope, editor, element)
|
||||
autoCompleteManager = new AutoCompleteManager(scope, editor, element, labelsManager)
|
||||
|
||||
|
|
Loading…
Reference in a new issue