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.

#108846 Problems with CSS Representation in JCE Editor

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 Ryan on Tuesday, 14 September 2021 16:24 BST

vtgrecklinghausen
Hello i have JCE PRO Version 2.9.11, Joomla 4.0.2 My problem is that the representation from css layout it wrong in editor dialog but correct in preview mode. The bootstrap row/columns get shown diffently dispite tinymce showing them correctly. The Image from the img-wrapper gets shown in full size corresponding css:

.image-wrapper img {
    vertical-align: middle;
    border-style: none;
    margin: auto;
    width: 100%;
}
I tried the use custom css option pointing to templates/$template/css/editor.css which imports all other csss

@import "style.css";
@import "template.css";
@import "/../assets/socicon/css/styles.min.css";
@import "custom.css";
by the way, the socicon icons arnt shown as well -_-

<div class="row">
<div class="col-6 col-md-3">
<div class="image-wrapper"><img src="https://www.joomlacontenteditor.net/image.jpg" alt="">
<p class="image-title">Title</p>
</div>
</div>
<div class="col-12 col-md-9">
<p>Long Text</p>
</div>
</div>
hope somebody can help. EDIT: After try and error for a while i could detect that it seems that jce cant use the @import statements. If i comment the imports and use tinymce it do not work either. If i additianally manually add tempalte.css in the jce config, it works. so the question is why it did not work for the import statements only in the jce editor plugin? kind regards Marcel

Attachments

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.

vtgrecklinghausen
Right now it is only local in XAAMP so i cant send a site login.
This weekend we plan to put it live, after that i will supply a test account.

is there a option to debug the css the jce editor reads and used like the normal browser css dev support? Seems that the content is displayed in an iframe.

Ryan
is there a option to debug the css the jce editor reads and used like the normal browser css dev support? Seems that the content is displayed in an iframe.


You can use the browser console for this. You should be able to see in the Network tab if the import css files were loaded, and the Inspector tab to see if they have been applied to content in the editor iframe.

Ryan Demmer

Lead Developer / CEO / CTO

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