Skip to content

Commit

Permalink
Fixed a broken require.
Browse files Browse the repository at this point in the history
  • Loading branch information
josdejong committed Feb 27, 2015
1 parent 0db2c35 commit 629ed49
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,10 @@ jsoneditor:

This will build Ace editor, and then generates necessary ace editor files in
the folder `./asset/ace`, and jsonlint in the folder `./asset/jsonlint`.


### Custom builds

To create a custom build of the JavaScript code, browserify can be used:

browserify ./index.js -o ./jsoneditor.custom.js -s JSONEditor --ignore-missing
2 changes: 1 addition & 1 deletion src/js/ace/theme-jsoneditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,6 @@ text-decoration: underline\
background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==\") right repeat-y\
}";

var dom = require("../lib/dom");
var dom = acequire("../lib/dom");
dom.importCssString(exports.cssText, exports.cssClass);
});

0 comments on commit 629ed49

Please sign in to comment.