Minor improvements

This commit is contained in:
George Kalampokis 2020-12-31 16:30:35 +02:00
parent cf47898007
commit 0367aa0431
2 changed files with 3 additions and 2 deletions

View File

@ -43,6 +43,7 @@ $mat-card-header-size: 40px !default;
color: #000000;
opacity: 1;
cursor: pointer;
text-decoration: none !important;
}
.faq-title:hover,

View File

@ -66,7 +66,7 @@ export class UserGuideEditorComponent extends BaseComponent implements OnInit {
const reader = new FileReader();
reader.addEventListener('load', () => {
let result = this.parseText(reader.result as string);
result = result.replace(/class="href" path="/g, 'href="#');
//result = result.replace(/class="href" path="/g, 'href="#');
this.formGroup.get('html').patchValue(result);
}, false);
reader.readAsText(data);
@ -74,7 +74,7 @@ export class UserGuideEditorComponent extends BaseComponent implements OnInit {
submit() {
let result = this.parseText(this.formGroup.get('html').value);
result = result.replace(/href="#/g, 'class="href" path="');
//result = result.replace(/href="#/g, 'class="href" path="');
this.formGroup.get('html').patchValue(result);
this.userGuideService.updateUserGuide(this.formGroup.value).pipe(takeUntil(this._destroyed))
.subscribe(