Search code examples
angulareditorangular-reactive-formsprimeng

PrimeNg editor: Value is not showing form the formControl


I have a component, which contains a formGroup which consists of two controls:

`enFormGroup: FormGroup = this.fb.group({
      titleEn: ['test', Validators.required],
      textEn: ['hello world', Validators.required],
    });`

In my html, I am using the editor from primeNg and I bound the formControl like this:

 `<div>
      <form [formGroup]="enFormGroup">
        <p-editor formControlName="textEn"></p-editor>
      </form>
    </div>`

the text 'hello world' is not showing up when I open the component. Here are the versions of primeng and quill: primeng: 13.2.1 quill: 2.0.1

StackBlitz example

Could someone help me with this please?


Solution

  • I had the same error and the solution was change quill's version.

    npm uninstall quill

    npm install [email protected]