Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#50652 closed defect (bug) (reported-upstream)

Editing a link removes the existing CSS classes

Reported by: elgameel's profile elgameel Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Editor Keywords:
Focuses: Cc:


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="" class="btn">test link</a>

The class tag will be removed, and it will look like this:

<a href="">test link</a>

Here's a video that explains the problem:

Change History (2)

#1 @sabernhardt
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to reported-upstream
  • Status changed from new to closed

@elgameel Thanks for the report!

I moved this to GitHub so the Editor team can fix the link attributes there:

If you have anything to add, please comment on that issue.

#2 @elgameel
4 years ago

Ok, thanks @sabernhardt !

Note: See TracTickets for help on using tickets.