[wp-trac] [WordPress Trac] #20089: Visual editor messes up links in headers
WordPress Trac
wp-trac at lists.automattic.com
Wed Feb 22 09:43:46 UTC 2012
#20089: Visual editor messes up links in headers
--------------------------+------------------------------
Reporter: jikamens | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 3.3.1
Severity: normal | Resolution:
Keywords: close |
--------------------------+------------------------------
Comment (by rosshanney):
The {{{id}}} attribute can be used in place of {{{name}}} for this
purpose. As stated on the same page you link above:
When the {{{name}}} or {{{id}}} attributes of the {{{A}}} element are
set, the element defines an anchor that may be the destination of other
links.
So your example would become:
{{{
<h2><a id="foo" href="#bar">Foo</a></h2>
}}}
TinyMCE seems to handle this correctly.
Of course, this doesn't change the fact that it should probably behave in
the same way with {{{name}}} too.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20089#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list