Fix code output logic
Fix codemirror url paths
This commit is contained in:
@ -9,7 +9,7 @@ window.common = (function(global) {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
!CodeMirror ||
|
!CodeMirror ||
|
||||||
challengeType !== challengeTypes.JS ||
|
challengeType !== challengeTypes.JS &&
|
||||||
challengeType !== challengeTypes.BONFIRE
|
challengeType !== challengeTypes.BONFIRE
|
||||||
) {
|
) {
|
||||||
common.updateOutputDisplay = () => {};
|
common.updateOutputDisplay = () => {};
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
extends ../layout-wide
|
extends ../layout-wide
|
||||||
block content
|
block content
|
||||||
link(rel='stylesheet', href='/js/lib/CodeMirror/lib/codemirror.css')
|
link(rel='stylesheet', href='/bower_components/CodeMirror/lib/codemirror.css')
|
||||||
link(rel='stylesheet', href='/js/lib/CodeMirror/addon/lint/lint.css')
|
link(rel='stylesheet', href='/bower_components/CodeMirror/addon/lint/lint.css')
|
||||||
link(rel='stylesheet', href='/js/lib/CodeMirror/theme/monokai.css')
|
link(rel='stylesheet', href='/bower_components/CodeMirror/theme/monokai.css')
|
||||||
link(rel='stylesheet', href='/css/ubuntu.css')
|
link(rel='stylesheet', href='/css/ubuntu.css')
|
||||||
.row(ng-controller="pairedWithController")
|
.row(ng-controller="pairedWithController")
|
||||||
.col-md-4.col-lg-3
|
.col-md-4.col-lg-3
|
||||||
@ -100,4 +100,7 @@ block content
|
|||||||
window.main.chat.createHelpChat('freecodecamp/help', '#challenge-help-btn');
|
window.main.chat.createHelpChat('freecodecamp/help', '#challenge-help-btn');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
editor.setOption("mode", "javascript");
|
|
||||||
|
common.init.push(function() {
|
||||||
|
common.editor.setOption('mode', 'javascript');
|
||||||
|
});
|
||||||
|
Reference in New Issue
Block a user