[wp-trac] [WordPress Trac] #26986: Editor Deletes Empty Spans
WordPress Trac
noreply at wordpress.org
Mon Feb 3 22:19:19 UTC 2014
#26986: Editor Deletes Empty Spans
--------------------------+------------------
Reporter: GeJay | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.9
Component: TinyMCE | Version: 3.8
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------
Comment (by TobiasBg):
Commit [27083] fixed an issue that resulted in the same problem for `<i>`
and `<b>` tags. Those are now no longer removed when switching to the
Visual editor and back.
I just tested this on WordPress 3.8.1, and empty `<i>` and `<b>` tags are
not removed their either.
Therefore, one way to work around this would be to not use `<span>` tags,
but `<i>` tags (which by the way is what most CSS libraries use for font
icons), like this:
{{{
<i class="icon-user"></i>
}}}
Related: #23037, #22477
--
Ticket URL: <https://core.trac.wordpress.org/ticket/26986#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list