Skip to content

Commit

Permalink
use setValue instead of insert
Browse files Browse the repository at this point in the history
  • Loading branch information
timwis committed Jan 23, 2016
1 parent 00d47a7 commit 8f0a01c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/vizwit-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ split(['#editor', '#preview'], {sizes: [40, 60]})
var editor = ace.edit('editor')
var session = editor.getSession()
session.setMode('ace/mode/json')
editor.insert(JSON.stringify(sampleData, null, 2))
editor.setValue(JSON.stringify(sampleData, null, 2), -1)

var refresh = function () {
var input = JSON.parse(editor.getValue())
Expand Down

0 comments on commit 8f0a01c

Please sign in to comment.