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: Lack of Documentation or Missing Functionality for Configuring and Extending Quill in PrimeVue Editor #7041

Open
2 of 4 tasks
sparrow-chik-chrk opened this issue Jan 3, 2025 · 1 comment
Labels
Resolution: Help Wanted Issue or pull request requires extra help and feedback
Milestone

Comments

@sparrow-chik-chrk
Copy link

Describe the bug

The current PrimeVue Editor component does not appear to provide a way to configure or extend the Quill instance before it is initialized. This issue can be reproduced by attempting to register custom formats, fonts, or Blots as required for advanced text editing use cases.

For example:

let Font = Quill.import('formats/font');
Font.whitelist = ['inconsolata', 'roboto', 'mirza', 'arial'];
Quill.register(Font, true);

Attempting this with the current Editor component is not possible because it does not expose an interface or hook to register such configurations prior to instantiating the Quill instance.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/primevue-4-vite-issue-template-rmwvyd2n?file=src%2Fmain.js

Environment

Windows 10

Vue version

latest

PrimeVue version

4.2.5

Node version

22.12.0

Browser(s)

Chrome 90

Steps to reproduce the behavior

  1. Install PrimeVue Editor and attempt to customize Quill using custom formats or Blots.
  2. Observe that there is no documented way to inject or configure these features before the Editor initializes Quill.
  3. This results in an inability to use PrimeVue Editor for advanced configurations of Quill.

Expected behavior

The Editor component should provide a way to:

Register custom Quill formats or Blots.
Configure Quill instance settings (e.g., Font.whitelist) before initializing the instance.

@sparrow-chik-chrk sparrow-chik-chrk added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 3, 2025
@mertsincan mertsincan added Resolution: Help Wanted Issue or pull request requires extra help and feedback and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Jan 6, 2025
@mertsincan mertsincan added this to the Future milestone Jan 6, 2025
@github-project-automation github-project-automation bot moved this to Review in PrimeVue Jan 6, 2025
Copy link

github-actions bot commented Jan 6, 2025

Due to PrimeTek's demanding roadmap for PrimeVue and the limited bandwidth of the core team, this issue is available for anyone to work on. Make sure to reference this issue in your pull request. ✨ Thank you for your contribution! ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Resolution: Help Wanted Issue or pull request requires extra help and feedback
Projects
Status: Review
Development

No branches or pull requests

2 participants