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

Font-size property is removed when Quill editor is initialized #3234

Closed
jiuyehengxia opened this issue Nov 25, 2020 · 1 comment
Closed

Font-size property is removed when Quill editor is initialized #3234

jiuyehengxia opened this issue Nov 25, 2020 · 1 comment

Comments

@jiuyehengxia
Copy link

The font-size property in existing content is removed when Quill editor is initialized. And the other property is ok, such as text-align, font-family.

I used like this:
const sizeStyle = Quill.import('attributors/style/size');
sizeStyle.whitelist = ['14px', '16px', '18px', '20px', '24px', '32px'];
Quill.register(sizeStyle, true);

const sizeClass = Quill.import('formats/size');
sizeClass.whitelist = ['14px', '16px', '18px', '20px', '24px', '32px'];
Quill.register(sizeClass, true);

Look forward to your reply! Thank you!

Originally posted by @jiuyehengxia in #3062 (comment)

@quill-bot
Copy link

Quill 2.0 has been released (announcement post) with many changes and fixes. If this is still an issue please create a new issue after reviewing our updated Contributing guide 🙏

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