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

WordPress Trac noreply at wordpress.org
Tue Aug 25 23:31:44 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 lisota):

 A fix for this is needed. icon fonts routinely use empty elements with a
 class defined. Font Awesome uses the <i> tag. Icomoon likes to use <span>.

 I don't buy that this is plugin material. This is TinyMCE being too
 opinionated and aggressive on what it decides to remove from HTML. These
 are common use cases with the rise in use of icon fonts.

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


More information about the wp-trac mailing list