-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Unable to set up a default font size #1493
Comments
Ah, seems, this does the trick:
Please clarify is that somehow configurable rather than adding this style? |
The way to change the default font size is first to actually change the default font size which you have done with CSS. This is the right way to do this. Since 20px is now the default you should also have this be valueless in the dropdown This demonstrates the same except for font family. Since you are using an inline style instead of class some of the other CSS is not necessary. |
I'm doing this to prevent settings being scattered around my app: .ql-container {
font-size: inherit !important
} |
I believe this is incomplete :
This seems to be working. |
I can`t set a default font-family for quill |
I was looking for solutions in customizing font-size of PrimeVue's Editor which is based on Quill editor, and it works like a charm, thank you :) |
This works for me,thanks! |
Worked for me |
I am overriding font-size options and am failing to set up a default font size. The idea is when the Quill loads and a user starts typing, it is of specified font size rather than default (which is 13px as far as I can understand). In the test case below I am setting up 20px as default. It is selected in the toolbar, but is not applied on typed text. Meanwhile, all other options works if select it. But if select 20px - again it is not applied.
I guess an 'option
with a
selected` attribute is treated as default (which is 13px) and it is set up somethere: in the theme or in JavaScript code - I cannot find where. I believe (really-really hope) it is overridable. Or, maybe, it is an issue?Steps for Reproduction
Expected behavior:
The typed text is of 20px font size.
Actual behavior:
The typed text is of 14px font size.
Platforms:
Windows 7
Chrome 58.0.3029.110 (64-bit)
Version:
1.2.5
P.S. Thank you very much for Quill and, especially, moving off from iframes!
The text was updated successfully, but these errors were encountered: