zenoamaro / react-quill

A Quill component for React.
https://zenoamaro.github.io/react-quill
MIT License
6.63k stars 915 forks source link

Calibri Font in React-Quill #959

Open DylanDaCosta23 opened 4 months ago

DylanDaCosta23 commented 4 months ago

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 commented 4 months ago

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.