Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Change Admin Editor to Specific Font while editing Post of Certain Language

admin

Started by Kyle Alexander Buan 6 years ago · 0 replies · 484 views
6 years ago

Hello.

While editing the page text in the Admin's editor, I need the text to show in another font when a specific language is activated. I can upload the WOFF or OTF or TTF into the server so the font itself is not a problem, but I was wondering how I can force the Admin editor to show the text in a different font while a specific language is selected.

For example, if the language is not Japanese, then the default font is perfectly fine, but when the post is Japanese, the editor's font will be set to a certain font.

I was thinking of relying on the HTML lang attribute, but it looks like it is set on the account's preferred language, and does not change based on the language of the post currently being edited.

Does somebody have any recommendations? I can edit CSS and HTML/Twig and touch files on the server if needed.

Thank you very much!

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 53 10 hours ago
Support · by Anna, 3 days ago
2 60 13 hours ago
Support · by Justin Young, 14 hours ago
1 30 14 hours ago
Support · by Duc , 1 week ago
2 65 5 days ago
Support · by Colin Hume, 1 week ago
2 56 5 days ago