Load the codemirror as package in the require.js, which will allow us to

load the codemirror addons without any modification.
This commit is contained in:
Ashesh Vashi
2016-04-14 12:34:14 +05:30
parent af1e38a97a
commit 30d189f499
6 changed files with 18 additions and 18 deletions

View File

@@ -43,6 +43,11 @@
require.config({
baseUrl: '',
waitSeconds: 0,
packages: [{
name: 'codemirror',
location: '{{ url_for('static', filename='js/codemirror')}}',
main: 'lib/codemirror'
}],
shim: {
"backbone": {
"deps": ['underscore', 'jquery'],