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

WordPress Trac noreply at wordpress.org
Sun Aug 10 20:45:53 UTC 2014


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

 Replying to [comment:7 ruud@…]:
 > I noticed that the empty <i> tags are not being removed even '''after'''
 removing the 28940.patch.

 Yes, currently empty `<i>` tags are only removed when they are the only
 child of the parent block tag, see [#comment:2 comment:2].

 Empty spans are always removed though as WebKit/Blink have the "bad habit"
 of inserting tons of them in many different cases, and this behavior
 changes from version to version.

 Still thinking this should be a plugin material. Empty inline tags that
 are needed for styling can be properly filtered and padded, the external
 stylesheet can be added, some sort of "Select an icon" dialog would be
 pretty nice, etc.

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


More information about the wp-trac mailing list