[wp-trac] [WordPress Trac] #50652: Editing a link removes the existing CSS classes
WordPress Trac
noreply at wordpress.org
Mon Jul 13 21:45:42 UTC 2020
#50652: Editing a link removes the existing CSS classes
--------------------------+-----------------------------
Reporter: elgameel | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
When we manually add a CSS class to a link in the editor, editing the link
again removes the class tag.
For example, if we try to edit this link:
{{{
<a href="https://example.com" class="btn">test link</a>
}}}
The class tag will be removed, and it will look like this:
{{{
<a href="https://example.com">test link</a>
}}}
Here's a video that explains the problem: https://i.rankmath.com/wtZycO
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50652>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list