Reopen please if problem persists.
Reopen please if problem persists.
Originally posted by @kolkov in https://github.com/kolkov/angular-editor/issue_comments/516497752
Hi @kolkov , Is there anyway to get formControlName="description" from angular-editor. Below control value doesn't get if i use HTML code functionality. Client side mat-error shows.
It would be great if you suggested. Thank you. <angular-editor [config]="config" formControlName="description">
config: AngularEditorConfig = { editable: true, spellcheck: true, height: '15rem', minHeight: '5rem', placeholder: 'Enter embed code here...', translate: 'no', defaultParagraphSeparator: 'p', defaultFontName: 'Arial', toolbarHiddenButtons: [ ['bold'] ], customClasses: [ { name: "quote", class: "quote", }, { name: 'redText', class: 'redText' }, { name: "titleText", class: "titleText", tag: "h1", }, ] };
contentFormInit() { this.contentForm = this.fb.group({ name: ['', Validators.required], description: ['', Validators.required], content: [''], status: ['Active', Validators.required], skippable: [false], contentPosition: [Validators.required] });
}
Closing as duplicate of #298. This is the same issue - iframe sanitization. See #298 for complete solution.