mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Use applyAsync to prevent issue when switching docs
This commit is contained in:
parent
c5735a31df
commit
598837e17c
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ define [
|
|||
attachToCM(sharejsDoc)
|
||||
|
||||
attachToCM = (sharejsDoc) ->
|
||||
setTimeout () ->
|
||||
scope.$applyAsync () ->
|
||||
Frontend.richText.openDoc(cm, sharejsDoc.getSnapshot())
|
||||
sharejsDoc.attachToCM(cm)
|
||||
|
||||
|
|
Loading…
Reference in a new issue