diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor.coffee index 716fd2ee9d..134a3629ab 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor.coffee @@ -91,8 +91,8 @@ define [ else editor.setOption('behavioursEnabled', false) - window.editors ||= [] - window.editors.push editor + window._debug_editors ||= [] + window._debug_editors.push editor scope.name = attrs.aceEditor @@ -430,6 +430,8 @@ define [ scope.$on '$destroy', () -> detachFromAce(scope.sharejsDoc) + scope.$emit "#{scope.name}:inited", editor + template: """