[wp-trac] [WordPress Trac] #28940: TinyMCE strips out empty <i> tags, breaking font awesome

WordPress Trac noreply at wordpress.org
Wed Oct 14 21:27:33 UTC 2015


#28940: TinyMCE strips out empty <i> tags, breaking font awesome
-------------------------------------------------+-------------------------
 Reporter:  DonSailieri                          |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  TinyMCE                              |  Release
 Severity:  normal                               |     Version:  3.9.1
 Keywords:  has-patch needs-testing dev-         |  Resolution:
  feedback                                       |     Focuses:
-------------------------------------------------+-------------------------

Comment (by NowComGreg):

 I just came across this exact issue.


 As @lisota said, a fix for this is needed.

 A work around can be found here for now: http://stv.whtly.com/2014/07/19
 /prevent-wordpress-tinymce-editor-removing-font-awesome-tags/

 Just add a comment tag inbetween the <i> like so

 <i class="fa fa-gamepad"><!-- icon --></i>

--
Ticket URL: <https://core.trac.wordpress.org/ticket/28940#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list