[wp-trac] [WordPress Trac] #17368: Visual editor (TinyMCE) should respect empty html tags with attributes
WordPress Trac
wp-trac at lists.automattic.com
Tue May 10 17:59:12 UTC 2011
#17368: Visual editor (TinyMCE) should respect empty html tags with attributes
--------------------------+-----------------------------
Reporter: designsimply | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 3.2
Severity: normal | Keywords: needs-patch
--------------------------+-----------------------------
The visual editor (TinyMCE) is no longer respecting empty html tags with
attributes such as {{{<br class="spacer_" />}}} or padded {{{<p>}}} tags
like {{{<p> </p>}}}.
Steps to reproduce:
1. Open a new post on a !WordPress trunk install.
2. Add the example code from below.
3. Switch back and forth between the Visual and HTML editor tabs.
* Expected: I expect the html in the example code to be preserved, i.e.
the extra line break and empty paragraph spacing to be respected as long
as they have attributes.
* Actual: Padding is being removed when it shouldn't.
Example code:
{{{
<p>We should preserve padded Ps.</p>
<p> </p>
<p>And empty html tags with attributes.</p>
<p class="spacer_"></p>
<p>one</p>
<br class="spacer_" />
<p>two</p>
<br class="spacer_" />
<br class="spacer_" />
<p>three</p>
<br class="spacer_" />
<br class="spacer_" />
<br class="spacer_" />
<p>stop</p>
}}}
Tested with r17848 on Chrome 11 beta and Firefox 4.0.1.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/17368>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list