Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
b4147778
Commit
b4147778
authored
Mar 09, 2017
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Supply DOM name to editor from the outside
parent
8b7970f4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app.js
src/app.js
+1
-1
editor.js
src/app/editor.js
+3
-3
No files found.
src/app.js
View file @
b4147778
...
@@ -157,7 +157,7 @@ var run = function () {
...
@@ -157,7 +157,7 @@ var run = function () {
// ----------------- editor ----------------------
// ----------------- editor ----------------------
var
editor
=
new
Editor
()
var
editor
=
new
Editor
(
'input'
)
// ----------------- tabbed menu -------------------
// ----------------- tabbed menu -------------------
$
(
'#options li'
).
click
(
function
(
ev
)
{
$
(
'#options li'
).
click
(
function
(
ev
)
{
...
...
src/app/editor.js
View file @
b4147778
...
@@ -6,9 +6,9 @@ var ace = require('brace')
...
@@ -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
=
{}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment