primefaces / primeng

The Most Complete Angular UI Component Library
https://primeng.org
Other
10.2k stars 4.55k forks source link

Editor: Not working with quilljs v2.0.0 and above #15741

Closed asithade closed 2 months ago

asithade commented 3 months ago

Describe the bug

When using p-editor with quilljs v2.0.0 and above, reactive form and ngmodel does not prepopulate the field if you preset its value.

Environment

"@angular/animations": "^17.3.9",
"@angular/cdk": "17.3.9",
"@angular/common": "^17.3.9",
"@angular/compiler": "^17.3.9",
"@angular/core": "^17.3.9",
"@angular/forms": "^17.3.9",
"@angular/platform-browser": "^17.3.9",
"@angular/platform-browser-dynamic": "^17.3.9",
"@angular/router": "^17.3.9",
"primeng": "^17.17.0",
"quill": "^2.0.1",

Reproducer

No response

Angular version

17.3.9

PrimeNG version

17.17.0

Build / Runtime

TypeScript

Language

TypeScript

Node version (for AoT issues node --version)

18.19.0

Browser(s)

Brave

Steps to reproduce the behavior

https://stackblitz.com/edit/lww9qn?file=src%2Fapp%2Feditor-reactive-forms-demo.ts

Expected behavior

It should prepopulate the fields with the preset text

brucevilo1013 commented 3 months ago

Yeah, this was working in primeng-editor with quill 1.3.7, but It does not work in quill 2.x. Now I use quill 1.3.7 as temporary solution, but should be replaced it with quill 2.x soon. In quill 1.3.7, the copy/paste of word document does not keep its format and It is broken. Please address this issue soon.

jonatanpetersson commented 3 months ago

Have the same issue, please fix.

PhuocHoangMinhNguyen commented 3 months ago

I can confirm this is an issue with quill 2.x compatibility with PrimeNG

ThoSap commented 3 months ago

@cetincakiroglu this ticket can be closed when #14721 is done

zhengangguo commented 2 months ago

Have the same issue, please fix.

mehmetcetin01140 commented 2 months ago

Fixed in https://github.com/primefaces/primeng/pull/15764. Thanks for reporting, closing the issue

mathankumaryesaian commented 2 weeks ago

if i pasted the copied table data not supported in quill version 1.3.7 and above 2.0.0 also.I am using primen v14,quill 1.3.7 and quill-better-table1.2.10. Expected o/p: Angular-Editor-Component

Getting: PrimeNG