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)

#109359 Italic button dont work in last version 2.9.17 Pro

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 deurkruk on Tuesday, 19 April 2022 12:19 BST

piluche
Hello,
When trying to set some words in italic inside article text, the text dont move into italics
In the article code, i get : <em>text</em>
I set em tag to italic in style CSS options
No way !
Could you help me in this issue ?
Many thanks ahead
Regards,
Phil ( From France)

Ryan
When trying to set some words in italic inside article text, the text dont move into italics
In the article code, i get : text
I set em tag to italic in style CSS options
No way !


This sounds like an issue with your template stylesheet. Please post a link to some example italic text on your site.

Ryan Demmer

Lead Developer / CEO / CTO

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

piluche
Thanks for this quick reply Ryan
Here you are :
https://optigestion.com/index.php/actualites/nos-editos/versions-ecrites/533-edito-novembre-2021-vnew
The template is made with Template Toaster ( in attachment)
Thanks for your help
Regards
Phil

Attachments

template_CSS.zip

Ryan
You need to add the italic version of the Opens Sans font you are using to the template stylesheet.

Ryan Demmer

Lead Developer / CEO / CTO

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

piluche
Thanks Ryan,

I'm not clever enough to do this
Though, it seems that the style sheet contains it :

@font-face
{
font-family:'Open Sans';
font-weight:400;
font-style:Italic;
src:url('../Fonts/Open Sans/regular.ttf');
}

How can i do more ?
Thanks

Ryan
@font-face { font-family:'Open Sans'; font-weight:400; font-style:Italic; src:url('../Fonts/Open Sans/regular.ttf'); }
This looks like it is loading the regular font, so perhaps it should be:

@font-face
{
font-family:'Open Sans';
font-weight:400;
font-style:Italic;
src:url('../Fonts/Open Sans/italic.ttf');
}

Ryan Demmer

Lead Developer / CEO / CTO

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

piluche
Thanks Ryan,

I did, what you suggested but no way.
In backend, when setting words in italic, in the editor, the article code goes to <em>text</em> and the text shows italic layout, but the text is stil normal on the published article in front end. Really strange !
Something more strange is that with Tiny Mice editor, italics work fine !
I realy cant get out of that issue.
May be you could check in backend.
Can give you credentials by separate mail if needed
Please tell me
Best regards

Phil

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.

Ryan
Something more strange is that with Tiny Mice editor, italics work fine !


The Tinymce editor is not using your template stylesheet to style content.

In backend, when setting words in italic, in the editor, the article code goes to text and the text shows italic layout, but the text is stil normal on the published article in front end. Really strange !


The Open Sans italic font was missing from your site, so I have uploaded it to the templates folder and updated the template.css file.

It appears to be working OK now - https://optigestion.com/index.php/actualites/nos-editos/versions-ecrites/533-edito-novembre-2021-vnew

Ryan Demmer

Lead Developer / CEO / CTO

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

piluche
Great !
I'm very grateful Ryan
Have a nice day
Best regards,
Phil

deurkruk
Hi,
I have the same problem, but I noticed Italic is working when you use CTRL + I, but not when you add Italic via the button in the editor.
It is not save, neither when you have Italic text and want to get back to normal.

Regards, Carst

Ryan
Pressing the Italic button will format the selection using the tag, whereas CTRL + I will use Your template stylesheet may have reset the default styling for , removing the italics. Check with the template developer on this, or add the following to your template stylesheet:

em {
    font-style: italic;
}

Ryan Demmer

Lead Developer / CEO / CTO

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

piluche
Thanks Ryan,
You can close this ticket
Cpngrats !
Phil

deurkruk
For me this is not resolved. Strange things are happening. When I'm using Italic, the format added is <em>. But after saving, this is removed. This happens in the backend, so it has nothing to do with frontend template or CSS.

Look at this video: https://screenshot.webjongens.nl/o0uRX9j5

You can see sometimes Italic <em> is saved, but somtimes not.
And you can see removing <em> is sometimes done, sometimes it is still live.

Ryan
Please try JCE Pro 2.9.23 Beta 4 - https://www.joomlacontenteditor.net/downloads/editor/pro/development

Ryan Demmer

Lead Developer / CEO / CTO

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

deurkruk
Hi Ryan,

This worked out for us! Thanks.

Regards, Carst