-
Notifications
You must be signed in to change notification settings - Fork 40
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
CKEditor uses Arial instead of Open Sans in Basis #4201
Comments
PR filed at backdrop/backdrop#2983. I'm not 100% sure that adding skin.css is the correct solution. That file contains a lot of other CSS that (probably) won't ever affect CKEditor. However it also includes some key utility classes like |
It doesn't do any harm. I can confirm, the patch works fine on a 1.15.x-dev with Basis as the default theme. Content styles are the same as when viewing the node (font, link color...). |
The PR works for me too!
I'm undecided about adding the extensive Hm, writing about it, at the moment, I'm in favor of a smaller PS: Bartik comes with a basic editor.css. |
I'm in favor of this too. ...especially after attending this session at DrupalSouth: https://www.youtube.com/watch?v=XMkIjhxt0Jg ...there is no reason to be loading additional css/js when it is not needed. |
@herbdool As you've added the RTBC tag, what do you think about the approach (adding the whole |
I'm down for making an editor.css, seems like it's likely we'll have other things that need to be pulled into the editor that aren't in the skin.css file in the future. And like @olafgrabienski says, skin.css has other implications when dealing with sub-themes, we could mostly side-step that issue by making a dedicated editor.css. |
I'm removing the milestone since PR needs work and this just keeps getting bumped without any actual progress. |
This looks like it could be a "good first issue." The goal would be to create a new PR that adds "ckeditor_stylesheets[] = css/editor.css" to the basis.info file and add the necessary CSS to this new file (css/editor.css) in the Basis theme. This might also involve identifying and moving other CKEditor specific css from Basis into this stylesheet (which might be difficult for a first time contributor). We have core/themes/bartik/css/editor.css as a possible reference. If anyone thinks this is not a "Good First Issue," please remove the tag. |
Description of the bug
Basis uses "Open Sans" for it's front-end font, but CKEditor does not load the font, instead it's using the default Arial.
Steps To Reproduce
To reproduce the behavior:
This results in ever so slight differences in spacing between CKEditor and the front-end.
PR by @quicksketch - backdrop/backdrop#2983
The text was updated successfully, but these errors were encountered: