Revision 50247
Added by Myrto Koukouli over 6 years ago
adminPg-help-texts.component.ts | ||
---|---|---|
6 | 6 |
}) |
7 | 7 |
|
8 | 8 |
export class AdminPgHelpTextsComponent implements OnInit { |
9 |
ckeditorContent: string = ""; |
|
9 |
helpTextContent: string = ""; |
|
10 |
previewContent: string = ""; |
|
10 | 11 |
constructor() {} |
11 | 12 |
|
12 |
ngOnInit() { |
|
13 |
this.ckeditorContent = `<p>My HTML</p>`; |
|
13 |
|
|
14 |
|
|
15 |
ngOnInit() {} |
|
16 |
|
|
17 |
showPreview() { |
|
18 |
this.previewContent = this.helpTextContent; |
|
14 | 19 |
} |
15 | 20 |
|
16 |
onChange(event : any) { |
|
17 |
console.log(this.ckeditorContent); |
|
18 |
} |
|
21 |
|
|
19 | 22 |
} |
Also available in: Unified diff
started forms