@Input() content = ''
@Input() formError: string
- @Input() classes: string[] | { [klass: string]: any[] | any } = []
-
- @Input() textareaMaxWidth = '100%'
- @Input() textareaHeight = '150px'
@Input() truncate: number
@Input() markdownType: 'text' | 'enhanced' = 'text'
@Input() customMarkdownRenderer?: (text: string) => Promise<string | HTMLElement>
+ @Input() debounceTime = 150
+
@Input() markdownVideo: Video
@Input() name = 'description'
ngOnInit () {
this.contentChanged
.pipe(
- debounceTime(150),
+ debounceTime(this.debounceTime),
distinctUntilChanged()
)
.subscribe(() => this.updatePreviews())
html = result
} else if (this.markdownType === 'text') {
- html = await this.markdownService.textMarkdownToHTML(text)
+ html = await this.markdownService.textMarkdownToHTML({ markdown: text })
} else {
- html = await this.markdownService.enhancedMarkdownToHTML(text)
+ html = await this.markdownService.enhancedMarkdownToHTML({ markdown: text })
}
if (this.markdownVideo) {