Skip to content
gjtorikian edited this page Sep 11, 2012 · 1 revision

Howtos

How do you get access to the editor (not the DOM element, but the ace.edit() editor)?

window.onload = function() {
  window.aceEditor = ace.edit("editor");
}

// Then elsewhere...
window.aceEditor.getSession().insert("Awesome!");