Commit 5beea7fc authored by Alex Beregszaszi's avatar Alex Beregszaszi

Use DOM object with ACE (and not the name)

parent b4147778
......@@ -157,7 +157,7 @@ var run = function () {
// ----------------- editor ----------------------
var editor = new Editor('input')
var editor = new Editor(document.getElementById('input'))
// ----------------- tabbed menu -------------------
$('#options li').click(function (ev) {
......
......@@ -8,7 +8,7 @@ require('../mode-solidity.js')
function Editor (editorElement) {
var editor = ace.edit(editorElement)
document.getElementById(editorElement).editor = editor // required to access the editor during tests
editorElement.editor = editor // required to access the editor during tests
var event = new EventManager()
this.event = event
var sessions = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment