Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
asithade opened this issue May 29, 2024 · 7 comments
Closed

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

asithade opened this issue May 29, 2024 · 7 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@asithade
Copy link

asithade commented May 29, 2024

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

  • Set a default value via class variable and set it it to p-editor [(ngModel)]
  • Set a default value via reactive forms

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

Expected behavior

It should prepopulate the fields with the preset text

@asithade asithade added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 29, 2024
@brucevilo1013
Copy link

brucevilo1013 commented Jun 5, 2024

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
Copy link

jonatanpetersson commented Jun 10, 2024

Have the same issue, please fix.

@PhuocHoangMinhNguyen
Copy link

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

@ThoSap
Copy link
Contributor

ThoSap commented Jun 14, 2024

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

@zhengangguo
Copy link

Have the same issue, please fix.

@mehmetcetin01140
Copy link
Contributor

Fixed in #15764. Thanks for reporting, closing the issue

@mathankumaryesaian
Copy link

mathankumaryesaian commented Aug 30, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

8 participants