mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add explicit editor init event
This commit is contained in:
parent
3802df5cfa
commit
5d3ecdb924
1 changed files with 4 additions and 2 deletions
|
@ -91,8 +91,8 @@ define [
|
||||||
else
|
else
|
||||||
editor.setOption('behavioursEnabled', false)
|
editor.setOption('behavioursEnabled', false)
|
||||||
|
|
||||||
window.editors ||= []
|
window._debug_editors ||= []
|
||||||
window.editors.push editor
|
window._debug_editors.push editor
|
||||||
|
|
||||||
scope.name = attrs.aceEditor
|
scope.name = attrs.aceEditor
|
||||||
|
|
||||||
|
@ -430,6 +430,8 @@ define [
|
||||||
scope.$on '$destroy', () ->
|
scope.$on '$destroy', () ->
|
||||||
detachFromAce(scope.sharejsDoc)
|
detachFromAce(scope.sharejsDoc)
|
||||||
|
|
||||||
|
scope.$emit "#{scope.name}:inited", editor
|
||||||
|
|
||||||
template: """
|
template: """
|
||||||
<div class="ace-editor-wrapper">
|
<div class="ace-editor-wrapper">
|
||||||
<div
|
<div
|
||||||
|
|
Loading…
Reference in a new issue