Fixes after codemirror update
This commit is contained in:
parent
4f7942e57d
commit
621db0ff42
@ -256,7 +256,7 @@ div#container {
|
||||
width:100%;
|
||||
}
|
||||
.CodeMirror {
|
||||
font-size:9pt;
|
||||
font-size:10pt;
|
||||
font-family:monospace;
|
||||
line-height:1em;
|
||||
}
|
||||
|
@ -96,13 +96,13 @@ function ajax_getvalues(request,confirm) {
|
||||
var spectext = document.getElementById("spectext");
|
||||
if ((nodes[i].nodeName == "editor") && (spectext != undefined) && (spectext.parentNode != undefined))
|
||||
{
|
||||
editor = CodeMirror.fromTextArea(spectext,
|
||||
{ lineNumbers: true,
|
||||
editor = CodeMirror.fromTextArea(spectext, {
|
||||
lineNumbers: false,
|
||||
tabSize: 4,
|
||||
indentUnit: 4,
|
||||
indentWithTabs: true,
|
||||
onChange: function() { editorChanged(); }
|
||||
});
|
||||
indentWithTabs: true
|
||||
});
|
||||
editor.on('change', function() { editorChanged(); });
|
||||
editor.setSize(null, 500);
|
||||
} else if ((nodes[i].nodeName == "output") && (document.getElementById("outputbottom") != undefined)) {
|
||||
document.getElementById("outputbottom").scrollTop = document.getElementById("outputbottom").scrollHeight;
|
||||
|
Loading…
Reference in New Issue
Block a user