Quiero usar CKEDITOR en my form . Paso el modelo a CKEDITOR pero no pasa nada, hice lo mismo sin usar el form y funciona correctamente, ¿Cuál es el motivo?
He subido los códigos y las imágenes a continuación,
¡por favor guíame!
Gracias,
package.json
//... "@angular/core": "^11.2.2", "@angular/forms": "^11.2.2", "ng2-ckeditor": "^1.3.4", //... index.html
<!--...--> <form *ngIf="active" #ticketForm="ngForm" novalidate (ngSubmit)="save()" autocomplete="off"> <ckeditor #ticket_MessageOfTicket="ngModel" [(ngModel)]="this.messageOfTicket" [config]="config"></ckeditor> <!--...--> </form> <!--...--> index.component.ts
//... config:any = { contentsLangDirection: 'rtl', } //... ngOnInit(): void { this.messageOfTicket="<p>Hello <strong>world !</strong></p>"; } //...