Commit aa20090e authored by Franco Pariani's avatar Franco Pariani
Browse files

Fix

parent 8c10b9e8
...@@ -190,10 +190,6 @@ var mac = /Mac/.test(navigator.platform); ...@@ -190,10 +190,6 @@ var mac = /Mac/.test(navigator.platform);
elt.className = className; elt.className = className;
if (cur.render) cur.render(elt, data, cur); if (cur.render) cur.render(elt, data, cur);
else { 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 rexp_name = new RegExp(/(.*\:\:)(.*)/.source, "g");
var m = rexp_name.exec(cur.displayText || getText(cur)); var m = rexp_name.exec(cur.displayText || getText(cur));
var b_elem = ownerDocument.createElement("b"); var b_elem = ownerDocument.createElement("b");
......
...@@ -190,10 +190,6 @@ var mac = /Mac/.test(navigator.platform); ...@@ -190,10 +190,6 @@ var mac = /Mac/.test(navigator.platform);
elt.className = className; elt.className = className;
if (cur.render) cur.render(elt, data, cur); if (cur.render) cur.render(elt, data, cur);
else { 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 rexp_name = new RegExp(/(.*\:\:)(.*)/.source, "g");
var m = rexp_name.exec(cur.displayText || getText(cur)); var m = rexp_name.exec(cur.displayText || getText(cur));
var b_elem = ownerDocument.createElement("b"); var b_elem = ownerDocument.createElement("b");
......
...@@ -219,7 +219,6 @@ ...@@ -219,7 +219,6 @@
</form> </form>
</div> </div>
<codemirror <codemirror
#codemirror_def
class="codemirrorPrograma" class="codemirrorPrograma"
[(ngModel)]="archivoDefinicion.contenido" [(ngModel)]="archivoDefinicion.contenido"
[config]="configCodeMirrorDefinicion" [config]="configCodeMirrorDefinicion"
......
...@@ -111,7 +111,7 @@ export class MateFunComponent { ...@@ -111,7 +111,7 @@ export class MateFunComponent {
}, },
files: null 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'] 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; version: string = npm.version;
...@@ -154,8 +154,10 @@ export class MateFunComponent { ...@@ -154,8 +154,10 @@ export class MateFunComponent {
this.code = "my code"; this.code = "my code";
let svg : string = ''; let svg : string = '';
this.configCodeMirrorDefinicion = this.configCodeMirror; for (var key in this.configCodeMirror){
this.configCodeMirrorDefinicion.readOnly = true; this.configCodeMirrorDefinicion[key] = this.configCodeMirror[key];
}
this.configCodeMirrorDefinicion['readOnly'] = true;
} }
...@@ -484,8 +486,10 @@ export class MateFunComponent { ...@@ -484,8 +486,10 @@ export class MateFunComponent {
goToFilesPreview(file_found, word){ goToFilesPreview(file_found, word){
this.mostrandoDefinicion = true; this.mostrandoDefinicion = true;
this.configCodeMirrorDefinicion = this.configCodeMirror; for (var key in this.configCodeMirror){
this.configCodeMirrorDefinicion.readOnly = true; 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.archivoDefinicion = this.archivosTree.archivos.filter(a => a.id == parseInt(file_found.id))[0];
this.jump = true; this.jump = true;
this.jump_word = word; this.jump_word = word;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment