mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-29 12:01:32 +02:00
Add explicit editor init event
This commit is contained in:
@@ -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: """
|
||||
<div class="ace-editor-wrapper">
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user