mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #331 from sharelatex/ja-autocomplete-fix
Potential fix for the auto-complete bug
This commit is contained in:
commit
a427414920
2 changed files with 7 additions and 4 deletions
|
@ -91,8 +91,8 @@ define [
|
||||||
else
|
else
|
||||||
editor.setOption('behavioursEnabled', false)
|
editor.setOption('behavioursEnabled', false)
|
||||||
|
|
||||||
window.editors ||= []
|
window._debug_editors ||= []
|
||||||
window.editors.push editor
|
window._debug_editors.push editor
|
||||||
|
|
||||||
scope.name = attrs.aceEditor
|
scope.name = attrs.aceEditor
|
||||||
|
|
||||||
|
@ -428,7 +428,10 @@ define [
|
||||||
rendererData.lineHeight = editor.renderer.lineHeight
|
rendererData.lineHeight = editor.renderer.lineHeight
|
||||||
|
|
||||||
scope.$on '$destroy', () ->
|
scope.$on '$destroy', () ->
|
||||||
detachFromAce(scope.sharejsDoc)
|
if scope.sharejsDoc?
|
||||||
|
detachFromAce(scope.sharejsDoc)
|
||||||
|
|
||||||
|
scope.$emit "#{scope.name}:inited", editor
|
||||||
|
|
||||||
template: """
|
template: """
|
||||||
<div class="ace-editor-wrapper">
|
<div class="ace-editor-wrapper">
|
||||||
|
|
|
@ -224,7 +224,7 @@ define [
|
||||||
# is likely to end up with `\href{}ref{}`
|
# is likely to end up with `\href{}ref{}`
|
||||||
if !data?
|
if !data?
|
||||||
completions = this.completions
|
completions = this.completions
|
||||||
popup = editor.completer.popup
|
popup = this.popup
|
||||||
data = popup.getData(popup.getRow())
|
data = popup.getData(popup.getRow())
|
||||||
data.completer =
|
data.completer =
|
||||||
insertMatch: (editor, matchData) ->
|
insertMatch: (editor, matchData) ->
|
||||||
|
|
Loading…
Reference in a new issue