You need to be logged in to post in the forum - Log In

An active JCE Pro Subscription is required to post in the forum - Buy a Subscription

Support is currently Online

Official support hours
Monday to Friday
09:00 - 17:00 Europe/London (BST)

#111603 font size

Posted in ‘Editor’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by ML_001 on Thursday, 04 August 2022 12:02 BST

ML_001
Hello,

Is there a way to set the font size in the editor window?
It's actually way too small at the moment.

The editor style is set to "template.css" so that I can work properly with the styles of the template, which also works very well.

If I now create an editor.css in the template directory with the following content:

p, td {
font-size: 24px;
}

then the font size in the editor window is displayed accordingly with the 24px - works.
But now I can no longer access my styles - no longer works.
If the editor.css is empty I can access the styles again, but then the font size is also very small again.

What can you do ?

Best regards

Manfred

Ryan
If I now create an editor.css in the template directory with the following content: p, td { font-size: 24px; } then the font size in the editor window is displayed accordingly with the 24px - works. But now I can no longer access my styles - no longer works.
At the top of the editor.css file, add an import rule for the template.css file, eg:

@import url('template.css');

p, td {
    font-size: 24px;
}

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

ML_001
Hello,

Yes, exactly - I've tried that too.
Font size gets bigger - works,
but now I have no option to select the styles.

As soon as the editor.css is empty, the style selection works again.
No matter what is in the editor.css, e.g. 123, the style selection no longer works.

greeting

Manfred

Ryan
Please send me a login - https://www.joomlacontenteditor.net/contact/site-login

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

ML_001
Hello,

Data has been sent!

greeting

Manfred

Ryan
I have added the font-size overrides to the Custom CSS field in the Custom Code section of your template framework options, eg:

.mceContentBody p,
.mceContentBody td {
    font-size: 24px;
}

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

ML_001
Hello,

so, I logged in, opened the editor - font size changed and style selection also worked.

Now I have deleted all cache, opened the editor again and now the font was small again and the style selection was no longer active.

sorry !

greeting

Manfred

Ryan
This is working fine for me. After you make any changes to the template styles, and clear the cache, you need to load the front-end of your site to re-compile the template css files.

JCE loads these compiled css files generated by your template.

Ryan Demmer

Lead Developer / CEO / CTO

Just because you're not paranoid doesn't mean everybody isn't out to get you.

ML_001
AHA - Yes, now it works perfectly.
You have to know that!
Thanks for the help !

Best regards

Manfred