webbuild: restore displaying line numbers in codemirror editor
This commit is contained in:
parent
8e1daaf940
commit
46535e5816
@ -95,7 +95,8 @@ function ajax_getvalues(request,confirm) {
|
|||||||
if ((nodes[i].nodeName == "editor") && (spectext != undefined) && (spectext.parentNode != undefined))
|
if ((nodes[i].nodeName == "editor") && (spectext != undefined) && (spectext.parentNode != undefined))
|
||||||
{
|
{
|
||||||
editor = CodeMirror.fromTextArea(spectext, {
|
editor = CodeMirror.fromTextArea(spectext, {
|
||||||
lineNumbers: false,
|
lineNumbers:true,
|
||||||
|
fixedGutter:true,
|
||||||
tabSize:4,
|
tabSize:4,
|
||||||
indentUnit:4,
|
indentUnit:4,
|
||||||
indentWithTabs:true
|
indentWithTabs:true
|
||||||
@ -127,7 +128,6 @@ function ajax_getvalues(request,confirm) {
|
|||||||
if (to > start) {
|
if (to > start) {
|
||||||
var customscroll = document.getElementById("matrix").scrollTop <
|
var customscroll = document.getElementById("matrix").scrollTop <
|
||||||
(document.getElementById("matrix").scrollHeight - document.getElementById("matrix").clientHeight);
|
(document.getElementById("matrix").scrollHeight - document.getElementById("matrix").clientHeight);
|
||||||
console.log(this.responseText.substring(start,to));
|
|
||||||
document.getElementById("matrix").innerHTML =
|
document.getElementById("matrix").innerHTML =
|
||||||
"<div id=matrixoutput><pre>" + this.responseText.substring(start,to).replace("</pre>","</pre>") + "</pre></div>";
|
"<div id=matrixoutput><pre>" + this.responseText.substring(start,to).replace("</pre>","</pre>") + "</pre></div>";
|
||||||
currpos = document.getElementById("matrixoutput").innerHTML.length;
|
currpos = document.getElementById("matrixoutput").innerHTML.length;
|
||||||
|
@ -262,11 +262,13 @@ input#repsearchtext {
|
|||||||
font-size:10pt;
|
font-size:10pt;
|
||||||
font-family:monospace;
|
font-family:monospace;
|
||||||
line-height:1.1em;
|
line-height:1.1em;
|
||||||
|
border:1px solid #2b6600;
|
||||||
|
/* font-size:12px; // causes problems*/
|
||||||
}
|
}
|
||||||
.editor {
|
.editor {
|
||||||
float:left;
|
float:left;
|
||||||
width:100%;
|
width:100%;
|
||||||
height:400px;
|
height:500px;
|
||||||
border:1px solid #cccccc;
|
border:1px solid #cccccc;
|
||||||
padding:0px;
|
padding:0px;
|
||||||
margin:0px;
|
margin:0px;
|
||||||
@ -436,11 +438,6 @@ input {
|
|||||||
column-rule: none;*/
|
column-rule: none;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.CodeMirror {
|
|
||||||
border:1px solid #2b6600;
|
|
||||||
// font-size:12px; // causes problems
|
|
||||||
}
|
|
||||||
|
|
||||||
.jspVerticalBar {
|
.jspVerticalBar {
|
||||||
width:5px;
|
width:5px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user