-import { Component, Input, OnInit } from '@angular/core'
+import { Component, Input } from '@angular/core'
import { FormGroup } from '@angular/forms'
import { CustomMarkupService } from '@app/shared/shared-custom-markup'
templateUrl: './edit-homepage.component.html',
styleUrls: [ './edit-custom-config.component.scss' ]
})
-export class EditHomepageComponent implements OnInit {
+export class EditHomepageComponent {
@Input() form: FormGroup
@Input() formErrors: any
}
- ngOnInit () {
- this.customMarkdownRenderer = async (text: string) => {
- return this.customMarkup.buildElement(text)
- }
+ getCustomMarkdownRenderer () {
+ return this.customMarkup.getCustomMarkdownRenderer()
}
}