[wp-trac] [WordPress Trac] #22888: Block <a> tags are getting stripped from the Editor
WordPress Trac
noreply at wordpress.org
Fri Dec 14 23:10:28 UTC 2012
#22888: Block <a> tags are getting stripped from the Editor
-----------------------------+--------------------
Reporter: georgestephanis | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: 3.5.1
Component: Editor | Version: 3.5
Severity: major | Resolution:
Keywords: needs-patch |
-----------------------------+--------------------
Comment (by bradyvercher):
The problem I'm having is that by specifying the href attribute in the
style format, it will overwrite an existing href attribute in the editor
when the only thing that needs to be done is add a class. I don't want to
define a wrapper, but rather merge the attributes, which would seem to
indicate that I shouldn't define an href in the style format. The only
problem is the style format will then add the <a> tag without an href and
the "Insert/edit link" button will then be disabled.
In any case, I dug through the code and found where this is being handled.
From the discussion so far, it sounds like the only reason the button is
being disabled is to account for named anchors. If so, are there any
downsides to making the change in the patch so href-less <a> tags can be
treated like links?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22888#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list