Skip to content

Commit

Permalink
fix task editor theam
Browse files Browse the repository at this point in the history
  • Loading branch information
孙健 committed Jul 5, 2017
1 parent 2f0f523 commit f754be1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/webapp/task/task_editor.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
<script src="${ctx }/editor/addon/edit/matchbrackets.js"></script>
<script src="${ctx }/editor/keymap/vim.js"></script>
<script src="${ctx }/editor/addon/display/fullscreen.js"></script>
<script src="${ctx }/editor/mode/python/python.js"></script>
<script src="${ctx }/editor/mode/javascript/javascript.js"></script>

<!-- Requires Mergely -->
<script type="text/javascript" src="${ctx }/js/mergely.min.js"></script>
Expand All @@ -193,7 +193,7 @@
<script>
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
lineNumbers : true,
mode : "python",
mode : "javascript",
matchBrackets : true,
theme : "monokai",
showCursorWhenSelecting : true,
Expand Down Expand Up @@ -306,7 +306,7 @@
$(document).ready(function () {
$('#compare').mergely({
cmsettings: { readOnly: false },
cmsettings: { mode: 'javascript',theme : "monokai",readOnly: false },
width: 'auto',
height: 450
});
Expand Down

0 comments on commit f754be1

Please sign in to comment.