remove the contents of the div once weve injected into the editor. this may not be the best solution for the long term, but its a win for now

This commit is contained in:
Joe Walker 2011-01-12 12:48:01 +00:00
commit 25573105b7

View file

@ -60,6 +60,7 @@ var ace = {
var theme = require("ace/theme/textmate");
var doc = new Document(el.innerHTML);
el.innerHTML = '';
doc.setMode(new JavaScriptMode());
doc.setUndoManager(new UndoManager());
env.editor = new Editor(new Renderer(el, theme));