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

WordPress Trac noreply at wordpress.org
Tue Sep 20 09:20:58 UTC 2016


#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 dgwyer):

 Was just about to open a new ticket when I came across this one.

 I'm also seeing Font Awesome tags being stripped out when switching
 between Text > Visual > Text editor modes.

 It's such a common task to include font icons in markup these days that
 this should be reconsidered for inclusion in core rather than a plugin.

 Perhaps we could maintain a white list of exceptions for empty tags? e.g.
 For Font Awesome this could be empty `<i>` tags containing an 'fa' class.
 Or, should this be more generic and just cover tag names only. e.g. All
 empty `<i>` tags?

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


More information about the wp-trac mailing list