[wp-trac] [WordPress Trac] #39782: TinyMCE strips empty a href tags breaking code...
WordPress Trac
noreply at wordpress.org
Wed Jul 3 09:49:53 UTC 2019
#39782: TinyMCE strips empty a href tags breaking code...
--------------------------+----------------------
Reporter: jkirker | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: TinyMCE | Version: 4.7.2
Severity: normal | Resolution: wontfix
Keywords: | Focuses:
--------------------------+----------------------
Changes (by azaozz):
* status: new => closed
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
Yes, empty inline elements are considered "user errors" and are stripped
by default, not just in TinyMCE but most (all?) editors I've seen. They
are invisible and "unclickable" on the front-end.
Not sure how you're inserting these `<a>` tags, but perhaps try padding
them with a HTML comment, or an entity. Then they will be considered non-
empty (although will still be invisible on the front-end).
This is now superseded by the block editor. Closing as wontfix, feel free
to reopen (perhaps with a patch) if this still needs fixing in the classic
editor.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39782#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list