Minor improvements
This commit is contained in:
parent
cf47898007
commit
0367aa0431
|
@ -43,6 +43,7 @@ $mat-card-header-size: 40px !default;
|
|||
color: #000000;
|
||||
opacity: 1;
|
||||
cursor: pointer;
|
||||
text-decoration: none !important;
|
||||
}
|
||||
|
||||
.faq-title:hover,
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue