|
|
@ -6,9 +6,9 @@ var ace = require('brace') |
|
|
|
var Range = ace.acequire('ace/range').Range |
|
|
|
var Range = ace.acequire('ace/range').Range |
|
|
|
require('../mode-solidity.js') |
|
|
|
require('../mode-solidity.js') |
|
|
|
|
|
|
|
|
|
|
|
function Editor () { |
|
|
|
function Editor (editorElement) { |
|
|
|
var editor = ace.edit('input') |
|
|
|
var editor = ace.edit(editorElement) |
|
|
|
document.getElementById('input').editor = editor // required to access the editor during tests
|
|
|
|
document.getElementById(editorElement).editor = editor // required to access the editor during tests
|
|
|
|
var event = new EventManager() |
|
|
|
var event = new EventManager() |
|
|
|
this.event = event |
|
|
|
this.event = event |
|
|
|
var sessions = {} |
|
|
|
var sessions = {} |
|
|
|