Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 662
ZCode Avatar asked Sep 03 '25 17:09

ZCode


1 Answers

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

npm uninstall quill

npm install [email protected]

like image 156
Jorge Ramón Avatar answered Sep 05 '25 16:09

Jorge Ramón