[wp-trac] [WordPress Trac] #28940: TinyMCE strips out empty <i> tags, breaking font awesome
WordPress Trac
noreply at wordpress.org
Tue Jul 29 02:39:50 UTC 2014
#28940: TinyMCE strips out empty <i> tags, breaking font awesome
--------------------------+--------------------
Reporter: DonSailieri | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: TinyMCE | Version: 3.9.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+--------------------
Comment (by azaozz):
The empty `<i>` are only removed when there is no other content in the
parent block (`<p><i></i> test</p>` stays intact). The only way around
that is to pad the empty <i> on `'BeforeSetContent'` and remove the
padding on `'SaveContent'`.
Please test 28940.patch asap so it can make it in 4.0 :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28940#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list