Closed felixs8696 closed 8 years ago
I use the onRender=config
callback to store the editor with the template instance, like this (in CoffeeScript):
Template.submessage.helpers
config: ->
ti = Tracker.nonreactive -> Template.instance()
(editor) =>
ti.editor = editor
...
Close as there was no followup. And a solution is provided.
Our project requires multiple ace editors, but the template that is built in this package requires an id of "editor", so we can only get the first instance of the editor using
var editor = ace.edit('editor')
. Is it possible to change this id or have a workaround for this problem?