Commit b4147778 authored by Alex Beregszaszi's avatar Alex Beregszaszi

Supply DOM name to editor from the outside

parent 8b7970f4
......@@ -157,7 +157,7 @@ var run = function () {
// ----------------- editor ----------------------
var editor = new Editor()
var editor = new Editor('input')
// ----------------- tabbed menu -------------------
$('#options li').click(function (ev) {
......
......@@ -6,9 +6,9 @@ var ace = require('brace')
var Range = ace.acequire('ace/range').Range
require('../mode-solidity.js')
function Editor () {
var editor = ace.edit('input')
document.getElementById('input').editor = editor // required to access the editor during tests
function Editor (editorElement) {
var editor = ace.edit(editorElement)
document.getElementById(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