WordPress.org

Make WordPress Core

Opened 4 weeks ago

#50652 new defect (bug)

Editing a link removes the existing CSS classes

Reported by: elgameel Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:

Description

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

Change History (0)

Note: See TracTickets for help on using tickets.