[wp-trac] [WordPress Trac] #29171: empty (and valid) span tags are removed when switching from visual to text editor and back to visual
WordPress Trac
noreply at wordpress.org
Wed Jul 5 00:36:54 UTC 2017
#29171: empty (and valid) span tags are removed when switching from visual to text
editor and back to visual
-------------------------------------+------------------
Reporter: ruud@… | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.9
Component: TinyMCE | Version: 3.9
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+------------------
Changes (by azaozz):
* keywords: dev-feedback has-patch needs-testing => has-patch needs-
testing
* milestone: Awaiting Review => 4.9
Comment:
29171.patch looks good but maybe better to not use ` ` for padding.
It is "visible" in the editor and the element can still be considered
"empty". Thinking it's better to use `<wbr />` as it doesn't affect the
element at all and is easy to deal with both in the DOM and in the HTML.
In 29171.2.patch: use `<wbr />` to pad empty spans and links so they are
not removed on editor cleanup.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29171#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list