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:
parent
0bea52db34
commit
25573105b7
1 changed files with 1 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue