Skip to content
Snippets Groups Projects
Commit aa20090e authored by Franco Pariani's avatar Franco Pariani
Browse files

Fix

parent 8c10b9e8
No related branches found
No related tags found
No related merge requests found
......@@ -190,10 +190,6 @@ var mac = /Mac/.test(navigator.platform);
elt.className = className;
if (cur.render) cur.render(elt, data, cur);
else {
var title = ownerDocument.createElement("p");
title.className = "function-definition-title";
title.appendChild(ownerDocument.createTextNode("Function's typing \n"));
elt.appendChild(title);
var rexp_name = new RegExp(/(.*\:\:)(.*)/.source, "g");
var m = rexp_name.exec(cur.displayText || getText(cur));
var b_elem = ownerDocument.createElement("b");
......
......@@ -190,10 +190,6 @@ var mac = /Mac/.test(navigator.platform);
elt.className = className;
if (cur.render) cur.render(elt, data, cur);
else {
var title = ownerDocument.createElement("p");
title.className = "function-definition-title";
title.appendChild(ownerDocument.createTextNode("Tipado de la función \n"));
elt.appendChild(title);
var rexp_name = new RegExp(/(.*\:\:)(.*)/.source, "g");
var m = rexp_name.exec(cur.displayText || getText(cur));
var b_elem = ownerDocument.createElement("b");
......
......@@ -219,7 +219,6 @@
</form>
</div>
<codemirror
#codemirror_def
class="codemirrorPrograma"
[(ngModel)]="archivoDefinicion.contenido"
[config]="configCodeMirrorDefinicion"
......
......@@ -111,7 +111,7 @@ export class MateFunComponent {
},
files: null
};
configCodeMirrorDefinicion: any;
configCodeMirrorDefinicion = {};
themes = ['3024-day', '3024-night', 'abcdef', 'ambiance-mobile', 'ambiance', 'base16-dark', 'base16-light', 'bespin', 'blackboard', 'cobalt', 'colorforth', 'dracula', 'duotone-dark', 'duotone-light', 'eclipse', 'elegant', 'erlang-dark', 'hopscotch', 'icecoder', 'isotope', 'lesser-dark', 'liquibyte', 'material', 'mbo', 'mdn-like', 'midnight', 'monokai', 'neat', 'neo', 'night', 'panda-syntax', 'paraiso-dark', 'paraiso-light', 'pastel-on-dark', 'railscasts', 'rubyblue', 'seti', 'solarized', 'the-matrix', 'tomorrow-night-bright', 'tomorrow-night-eighties', 'ttcn', 'twilight', 'vibrant-ink', 'xq-dark', 'xq-light', 'yeti', 'zenburn']
version: string = npm.version;
......@@ -154,8 +154,10 @@ export class MateFunComponent {
this.code = "my code";
let svg : string = '';
this.configCodeMirrorDefinicion = this.configCodeMirror;
this.configCodeMirrorDefinicion.readOnly = true;
for (var key in this.configCodeMirror){
this.configCodeMirrorDefinicion[key] = this.configCodeMirror[key];
}
this.configCodeMirrorDefinicion['readOnly'] = true;
}
......@@ -484,8 +486,10 @@ export class MateFunComponent {
goToFilesPreview(file_found, word){
this.mostrandoDefinicion = true;
this.configCodeMirrorDefinicion = this.configCodeMirror;
this.configCodeMirrorDefinicion.readOnly = true;
for (var key in this.configCodeMirror){
this.configCodeMirrorDefinicion[key] = this.configCodeMirror[key];
}
this.configCodeMirrorDefinicion['readOnly'] = true;
this.archivoDefinicion = this.archivosTree.archivos.filter(a => a.id == parseInt(file_found.id))[0];
this.jump = true;
this.jump_word = word;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment