diff --git a/services/web/public/coffee/ide/editor/directives/cmEditor.coffee b/services/web/public/coffee/ide/editor/directives/cmEditor.coffee index 1241e54415..37a7724d85 100644 --- a/services/web/public/coffee/ide/editor/directives/cmEditor.coffee +++ b/services/web/public/coffee/ide/editor/directives/cmEditor.coffee @@ -17,7 +17,7 @@ define [ attachToCM(sharejsDoc) attachToCM = (sharejsDoc) -> - setTimeout () -> + scope.$applyAsync () -> Frontend.richText.openDoc(cm, sharejsDoc.getSnapshot()) sharejsDoc.attachToCM(cm)