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

Calibri Font in React-Quill #959

Open
DylanDaCosta23 opened this issue Mar 19, 2024 · 1 comment
Open

Calibri Font in React-Quill #959

DylanDaCosta23 opened this issue Mar 19, 2024 · 1 comment

Comments

@DylanDaCosta23
Copy link

I'm currently working on a project that utilizes React-Quill as our rich text editor of choice.
However, we've encountered a limitation regarding the available font options within the editor.
Our project specifically requires the use of the Calibri font, and we noticed that Calibri is not currently supported by React-Quill.

Any way to add it?

Ty.

@adgoncal
Copy link

react-quill is just a wrapper around QuillJS 1.3.7. You can add fonts yourself.
See example: https://stackblitz.com/edit/react-quill-experiment-2024-03-21?file=src%2Fcomponents%2FEditorToolbar.tsx

Note that react-quill has not been updated in 2 years, and the owner of this repo has not replied to issues in some time.
Also, QuillJS v1.3.7 relies on the browser mutation events, which is deprecated and will be removed from Chrome in July 2024.

QuillJs v2 (currently a release candidate version) has removed the usage of mutation events. This version is not supported by react-quill, and at this point it seems unlikely to expect support for it in this repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants