Updated editor height; visualized which is active
This commit is contained in:
@@ -15,6 +15,7 @@ export class AceEditorBase {
|
||||
cutBuffer: string = "";
|
||||
timerId: number = -1;
|
||||
activeFile!: NewtonFile;
|
||||
isDefault: boolean = false;
|
||||
|
||||
|
||||
constructor(
|
||||
@@ -23,6 +24,14 @@ export class AceEditorBase {
|
||||
}
|
||||
|
||||
|
||||
public addActiveStyling() {
|
||||
this.editorElm.nativeElement.classList.add("active-editor")
|
||||
}
|
||||
|
||||
public removeActiveStyling() {
|
||||
this.editorElm.nativeElement.classList.remove("active-editor")
|
||||
}
|
||||
|
||||
protected search() {
|
||||
console.log(this.editor.getSession()["$modeId"])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user