Use DOM object with ACE (and not the name)

pull/1/head
Alex Beregszaszi 8 years ago
parent b414777899
commit 5beea7fc5d
  1. 2
      src/app.js
  2. 2
      src/app/editor.js

@ -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 = {}

Loading…
Cancel
Save