[wp-trac] [WordPress Trac] #22888: Block <a> tags are getting stripped from the Editor
WordPress Trac
noreply at wordpress.org
Wed Dec 12 23:27:02 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 |
-----------------------------+--------------------
Description changed by SergeyBiryukov:
Old description:
> Steps to duplicate:
>
> Make a new post.
> Have a single line of text saying 'Foo foo foo'.
> Change it to a h1 block.
> Select the line.
> Add a hyperlink to example.com
> Switch to the Text tab.
> Switch back to the Visual Editor.
>
> THE LINK IS GONE ZOMG WUT?!?!
>
> Basically since we've incorporated the HTML5 Schema for TinyMCE, <a> tags
> have been upgraded to a block-level element. So TinyMCE will wrap the
> <h1> tag with the <a> tag -- as opposed to the opposite in 3.4.
>
> Then we go in and strip it out (because reasons).
>
> Let's stop stripping out valid tags that we're adding via the editor in
> 3.5.1
New description:
Steps to duplicate:
1. Make a new post.
2. Have a single line of text saying 'Foo foo foo'.
3. Change it to a h1 block.
4. Select the line.
5. Add a hyperlink to example.com
6. Switch to the Text tab.
7. Switch back to the Visual Editor.
THE LINK IS GONE ZOMG WUT?!?!
Basically since we've incorporated the HTML5 Schema for TinyMCE, <a> tags
have been upgraded to a block-level element. So TinyMCE will wrap the
<h1> tag with the <a> tag -- as opposed to the opposite in 3.4.
Then we go in and strip it out (because reasons).
Let's stop stripping out valid tags that we're adding via the editor in
3.5.1
--
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22888#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list