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.

#113063 Awesome icone display by css —> content: “Unicode code” —> e.g. (content: "\f00c" !important;) is not showing in 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 Chacapamac on Saturday, 20 May 2023 18:17 BST

Chacapamac
I bring my Awesome icons in JCE Editor to make JCE more WYSIWYG I just add this call to my local Awesome Font Folders main css at the top of my custom JCE Editor CSS file (editor_content.css) @import "../../../../../media/astroid/assets/vendor/fontawesome/css/all.min.css"; It work perfectly if I use the full i class html of Awesome icons like —>

<i class="fa fa-check"></i>
The problem is when Icons are call by CSS and “content” it doesn't work in the editor but work perfectly on the frontend — The typical CSS (in my custom.scss) is like this:

h6.ok::before {
    color: $orange;
    content: "\f00c" !important;
    font-family: FontAwesome;
    font-size: 140%;
    font-weight: $regular !important;
    padding-right: 10px;
}
Just display an empty square in the editor.......

Ryan
This is working for me. Check that this path is correct, and make sure it is at the top of the editor_content.css file:

@import "../../../../../media/astroid/assets/vendor/fontawesome/css/all.min.css";

Ryan Demmer

Lead Developer / CEO / CTO

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

Chacapamac
Forget to answer, yes it work
@import "../../../../../media/astroid/assets/vendor/fontawesome/css/all.min.css";