Minor improvements
This commit is contained in:
parent
cf47898007
commit
0367aa0431
|
@ -43,6 +43,7 @@ $mat-card-header-size: 40px !default;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
text-decoration: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.faq-title:hover,
|
.faq-title:hover,
|
||||||
|
|
|
@ -66,7 +66,7 @@ export class UserGuideEditorComponent extends BaseComponent implements OnInit {
|
||||||
const reader = new FileReader();
|
const reader = new FileReader();
|
||||||
reader.addEventListener('load', () => {
|
reader.addEventListener('load', () => {
|
||||||
let result = this.parseText(reader.result as string);
|
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);
|
this.formGroup.get('html').patchValue(result);
|
||||||
}, false);
|
}, false);
|
||||||
reader.readAsText(data);
|
reader.readAsText(data);
|
||||||
|
@ -74,7 +74,7 @@ export class UserGuideEditorComponent extends BaseComponent implements OnInit {
|
||||||
|
|
||||||
submit() {
|
submit() {
|
||||||
let result = this.parseText(this.formGroup.get('html').value);
|
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.formGroup.get('html').patchValue(result);
|
||||||
this.userGuideService.updateUserGuide(this.formGroup.value).pipe(takeUntil(this._destroyed))
|
this.userGuideService.updateUserGuide(this.formGroup.value).pipe(takeUntil(this._destroyed))
|
||||||
.subscribe(
|
.subscribe(
|
||||||
|
|
Loading…
Reference in New Issue