From 5d3ecdb9247119faa715e441202f2fee44fb327a Mon Sep 17 00:00:00 2001 From: James Allen Date: Tue, 13 Feb 2018 08:27:48 +0000 Subject: [PATCH] Add explicit editor init event --- .../public/coffee/ide/editor/directives/aceEditor.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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: """