FontAwesome Icons

GK User
Tue Sep 02, 2014 8:41 pm
Every time I try to use this typography the code is being stripped. For instance:

Code: Select all
<ul>
<li><a href="#"><i class="gk-icon-script"></i>How to Signup</a></li>
<li><a href="#"><i class="gk-icon-calendar"></i>Deadlines</a></li>
<li><a href="#"><i class="gk-icon-education"></i>Find a major</a></li>
<li class="last-item"><a href="#">More details…</a></li>
</ul>   


This is your default code for this template. If I change ANYTHING, the <i> codes are removed. I can't even use the default anymore with the icons. Using any fa-blahblah also does not work, the <i class></i> is completely removed. I've set prepare content to yes just to try.. and I've ensured the <i> code is not a prohibited element in tinymce.

Please help.
User avatar
Fresh Boarder

GK User
Wed Sep 03, 2014 7:06 am
Please disable tinyMCE editor in global configuration (change editor to "editor - none").
It strips html code.
User avatar
Moderator

GK User
Wed Nov 05, 2014 1:43 pm
twentyfourcrowns wrote:Every time I try to use this typography the code is being stripped. For instance:

Code: Select all
<ul>
<li><a href="#"><i class="gk-icon-script"></i>How to Signup</a></li>
<li><a href="#"><i class="gk-icon-calendar"></i>Deadlines</a></li>
<li><a href="#"><i class="gk-icon-education"></i>Find a major</a></li>
<li class="last-item"><a href="#">More details…</a></li>
</ul>   


This is your default code for this template. If I change ANYTHING, the <i> codes are removed. I can't even use the default anymore with the icons. Using any fa-blahblah also does not work, the <i class></i> is completely removed. I've set prepare content to yes just to try.. and I've ensured the <i> code is not a prohibited element in tinymce.

Please help.

Hi,
edit full.xml file.
add this &nbsp; line around 66 :
Code: Select all
<group name="Icons - Font Awesome" type="html">
      <item name="General icon rule"><![CDATA[<i class="fa fa-CLASS_NAME">&nbsp;</i> content here...]]></item>
   </group>

works for me.
Best regards.
Gioacchino
User avatar
Expert Boarder

GK User
Wed Nov 05, 2014 4:12 pm
Which exactly file are you referring to? Could you please post full patch to this file?
User avatar
Moderator

GK User
Wed Nov 05, 2014 7:00 pm
Cyberek wrote:Which exactly file are you referring to? Could you please post full patch to this file?

Hi,
the file is full.xml.
There is still a problem with number blocks, which I could not understand why inserting the code of typography, the HTML is cleaned removing the tag <span>.
eg
Code: Select all
<p class="numblocks num-1"><span>01</span>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>

is cleaned in this way:
Code: Select all
<p class="numblocks num-1">01Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>

See the attachment.
full.zip

Best Regards.
Gioacchino
User avatar
Expert Boarder

GK User
Wed Nov 05, 2014 7:08 pm
You might also find some help in this article:
https://www.gavick.com/documentation/un ... d-editors/
User avatar
Moderator


cron