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 Offline

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

Please create a new Ticket and we will get back to you as soon as we can.

#116566 Linebreak in adminpanel after pdf-icon on filelink

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 matrix on Monday, 01 April 2024 12:04 BST

matrix
Hi Ryan
Sorry, that i made here a new post. But when i will expand the latest Post, then i become the message:
"Sorry, but the post that you are trying to access is not available."

I have found this:
When i deactivate in JCE Global Config "Compress CSS" - "Combine and compress editor css files to speed up loading.", then the linebreak in the backend is gone!

Ryan
I have found this:
When i deactivate in JCE Global Config "Compress CSS" - "Combine and compress editor css files to speed up loading.", then the linebreak in the backend is gone!


This sounds like a browser cache issue. The individual uncached files are now being loaded. If you re-enable the Compress CSS option, it should work too.

Ryan Demmer

Lead Developer / CEO / CTO

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

matrix
Hy Ryan
Thank you for your answer.
I have re-enable the Compress CSS option - the problem is again there. 🙁
Greetings from Switzerland :)

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.

matrix
Hi Ryan

One Site with pdf is "tagesstrukturen" - at the end of the site i have 2 pdf's.

Ryan
Apologies, there was an issue with the "Site Login" form, can you send the login again? - 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.

matrix
I have many other sites with jece editor - i have tested by other sites. the same result. with compress it will be made a linebreak in the admin when i made a article with pdf's.

matrix
furter info - i have write this in another ticket:

in helix template i have made the following css:
/*+ PDF-Icon Zeilenschaltung verhindern */
img {
/*max-width: 100%;*/
/*height: auto;*/
display: initial!important;
}
/*- PDF-Icon Zeilenschaltung verhindern */

When i made this not, then i have on the live site same problem, that i have a linebreak after the pdf-icon.
i mean, when i compress the css, this information will not come to the admin panel in article-work.

Ryan
You appear to have added the style to the JCE content.css file, which is incorrect. The css override should be added in your template stylesheets. I have Create a custom.css file in the your templates's css folder: templates/shaper_helixultimate/css/custom.css and added the following:

/* override for global display:block styles on img tags */
img.wf_file_icon {
  display: inline-block;
}
This now works as expected with Compress CSS on or off.

Ryan Demmer

Lead Developer / CEO / CTO

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

matrix
Hi Ryan

Ok -
This is beyond my “skills” when it comes to css control. I will therefore use your custom.css or do not compress.
Thank you!

matrix
For understanding:
in the helix template, i have now made this (deactivating your custom.css override):

/* override for global display:block styles on img tags */
img.wf_file_icon, img {
display: inline-block!important;
}
/* override for global display:block styles on img tags */

in jece global config, i have
editor style: template css file

then, i mean, jce will work with this template css file (also helix ultimate)

why the override will now not work in jce?
why jce content css will work instead?

matrix
For understanding:
in the global config from jce i have:
Editor Styles: Template.css

In this case, i mean, the template.css file from helix ultimate is used in jce.

In helix ultimate template i have this css:

/* override for global display:block styles on img tags */
img.wf_file_icon, img {
display: inline-block!important;
}

why will jce this not use in the backend on edit article??

when i search in the backend on article edit to css-info for the pdf-icon, i will see this:

img {
display: block;
max-width: 100%;
height: auto
}

why jce use not the template css and made a "display: block;"?

i have a further info at print-screen - but the file upload will not work here (no jpg, no png will work). the two images are no greater tha 0.512 MB.

Attachments

Ryan
If you have made changes to the template.css file, you will need to clear your browser cache.

It is also a good idea to disable Compress CSS, load the editor, then enabled Compress CSS (if you are using it)

Ryan Demmer

Lead Developer / CEO / CTO

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

matrix
OK - i will try this.
last question: is compress css needed or can i forget this and made no compress?
is compressed many bether instead no compress?

Ryan
last question: is compress css needed or can i forget this and made no compress?
is compressed many bether instead no compress?


Leave it off, it won't make too much difference.

Ryan Demmer

Lead Developer / CEO / CTO

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

matrix
:)
you can close...