I want to add custom size and respective names to the Font size dropdown provided in react-quill library.
I was able to do it with Quilljs but after importing the Quill from "react-quill", not able to figure out where to add registered SizeStyle.
I have done it with pain quilljs the jquery version and it's working. But when I try the same in React-quill it's not working.
import ReactQuill, { Quill } from 'react-quill';
let SizeStyle = Quill.import('attributors/style/size');
SizeStyle.whitelist = ["10px", "15px", "18px", "20px", "32px", "54px"]
Quill.register(SizeStyle, true);
In the render method:
What to do?
Expected:
Custom dropdown with selection for the Sizes's mentioned above