Use applyAsync to prevent issue when switching docs
This commit is contained in:
@@ -17,7 +17,7 @@ define [
|
||||
attachToCM(sharejsDoc)
|
||||
|
||||
attachToCM = (sharejsDoc) ->
|
||||
setTimeout () ->
|
||||
scope.$applyAsync () ->
|
||||
Frontend.richText.openDoc(cm, sharejsDoc.getSnapshot())
|
||||
sharejsDoc.attachToCM(cm)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user